Sign in to follow this  
Followers 0
Just1f

GUI in video game

4 posts in this topic

#1 ·  Posted (edited)

Hello,

I would like to have an AutoIT GUI window for an administrative tool to stay on top of my video game. Indeed when a window pops-up it actually minimizes the video game. When I go back on the video game it then hides the window.

With ToolTip() functions I am able to output text upon the screen of the game, but now I want usersto be able to click on a menu or buttons during the time they have their game running.

How to ?

Thank you :-)

Edited by Just1f

Share this post


Link to post
Share on other sites



refresh : any idea ?

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Its easy : use the extended style $WS_EX_TOPMOST for your GUI, so its always on top. :)

Example:

$aGui = GUICreate( "Your GUI", 300, 250, -1, -1, -1, $WS_EX_TOPMOST)
Edited by UnReAl

Share this post


Link to post
Share on other sites

Its easy : use the extended style $WS_EX_TOPMOST for your GUI, so its always on top. :)

Example:

$aGui = GUICreate( "Your GUI", 300, 250, -1, -1, -1, $WS_EX_TOPMOST)
When I run my game in windowed mode, I have the tool on top if the screen using WS_EX_TOPMOST, but when I switch to fullscreen mode it then hides the tool's window. Maybe a Windows API can take control of overlapping windows even if they are on TOPMOST ?

How to circumvent that ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0