Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 552 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
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: 619
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 619
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: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
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: 619
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 619
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 | chip programmers | 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