Jump to content

GUI in video game


Just1f
 Share

Recommended Posts

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
Link to comment
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 ?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...