Wallpapaer Engine

Posted By: 20BN

Wallpapaer Engine - 09/24/20 01:37

Hello all,
How to setting/scriptting A8 Screensaver Like Steam Wallpapaer Engine ?
USE video_window(VECTOR* pos,VECTOR* size,var style,STRING* title) ?

THANKS
Posted By: Dooley

Re: Wallpapaer Engine - 09/24/20 03:59

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.
Posted By: Emre

Re: Wallpapaer Engine - 09/24/20 07:21

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.
Posted By: Dooley

Re: Wallpapaer Engine - 09/24/20 14:42

Ah, I was not familiar with that...
Posted By: 20BN

Re: Wallpapaer Engine - 09/29/20 02:46

Emre THANKS!

Posted By: 20BN

Re: Wallpapaer Engine - 09/29/20 03:02

I successfully embedded the GAME WINDOW into the WALLPAPER WINDOW, but I can’t use keypress and mouse events.
Posted By: Emre

Re: Wallpapaer Engine - 09/29/20 17:46

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.
Posted By: 20BN

Re: Wallpapaer Engine - 09/30/20 02:46

@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.
© 2024 lite-C Forums