Gamestudio Links
Zorro Links
Newest Posts
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/16/26 11:13
Z9 getting Error 058
by jcl. 06/16/26 09:51
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Martin_HH, Student_64151), 3,152 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Wallpapaer Engine #481513
09/24/20 01:37
09/24/20 01:37
Joined: Feb 2003
Posts: 146
RP China
2
20BN Offline OP
Member
20BN  Offline OP
Member
2

Joined: Feb 2003
Posts: 146
RP China
Hello all,
How to setting/scriptting A8 Screensaver Like Steam Wallpapaer Engine ?
USE video_window(VECTOR* pos,VECTOR* size,var style,STRING* title) ?

THANKS

Re: Wallpapaer Engine [Re: 20BN] #481514
09/24/20 03:59
09/24/20 03:59
Joined: May 2005
Posts: 871
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 871
Chicago, IL
Look up sys_metrics in the manual, it allows you to get the current width and height of the screen.
Then video_set to make the game window.
I think a screen saver needs to be changed from .exe to .scr for it to work.

I should mention that I've never made a screen saver, but this is how I would approach it.

Re: Wallpapaer Engine [Re: 20BN] #481515
09/24/20 07:21
09/24/20 07:21
Joined: Jul 2007
Posts: 620
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 620
Turkey, Izmir
The wallpaper engine does not work like a screensaver. It is simply an application that runs in the windows desktop background. What you have to do is use acknex in the same way. For this, you need to find the windows desktop/wallpaper window and assign it to the engine's window as parent. (SetParent) (hWnd)

Before that, of course you can use the video_window command to make the engine borderless.

Re: Wallpapaer Engine [Re: 20BN] #481519
09/24/20 14:42
09/24/20 14:42
Joined: May 2005
Posts: 871
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 871
Chicago, IL
Ah, I was not familiar with that...

Re: Wallpapaer Engine [Re: Emre] #481555
09/29/20 02:46
09/29/20 02:46
Joined: Feb 2003
Posts: 146
RP China
2
20BN Offline OP
Member
20BN  Offline OP
Member
2

Joined: Feb 2003
Posts: 146
RP China
Emre THANKS!


Last edited by 20BN; 09/29/20 03:22.
Re: Wallpapaer Engine [Re: 20BN] #481556
09/29/20 03:02
09/29/20 03:02
Joined: Feb 2003
Posts: 146
RP China
2
20BN Offline OP
Member
20BN  Offline OP
Member
2

Joined: Feb 2003
Posts: 146
RP China
I successfully embedded the GAME WINDOW into the WALLPAPER WINDOW, but I can’t use keypress and mouse events.

Last edited by 20BN; 09/29/20 03:23.
Re: Wallpapaer Engine [Re: 20BN] #481560
09/29/20 17:46
09/29/20 17:46
Joined: Jul 2007
Posts: 620
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 620
Turkey, Izmir
Originally Posted by 20BN
I successfully embedded the GAME WINDOW into the WALLPAPER WINDOW, but I can’t use keypress and mouse events.

That's normal. When the engine's window is in the background, you can use GetKeyState and similar commands from WINAPI. Afaik, these commands will work fine.

Re: Wallpapaer Engine [Re: Emre] #481567
09/30/20 02:46
09/30/20 02:46
Joined: Feb 2003
Posts: 146
RP China
2
20BN Offline OP
Member
20BN  Offline OP
Member
2

Joined: Feb 2003
Posts: 146
RP China
@Emre THANKS!

Successfull !!!

Virtual-Key Codes:
https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes

But,
I cannot trigger UI events with the mouse, PANEL BUTTON or IMGUI.
EX:
EVENT_CLICK
EVENT_TOUCH
....
etc.

Last edited by 20BN; 09/30/20 02:46.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1