Jump to content
Sign in to follow this  
giogio

winsetontop

Recommended Posts

giogio

#include <GuiConstants.au3>

$hGui = GUICreate("Test", 300, 200, Default, Default, $DS_MODALFRAME)

$Button = GUICtrlCreateButton("EXIT", 100, 130, 100, 30)

GUISetState()

WinSetOnTop("test", "", 1)

Do

Sleep(20)

Until GUIGetMsg() = $Button

Share this post


Link to post
Share on other sites
Siao

By default title matching is case sensitive. "Test" <> "test".

But since at this point you know the handle of your window, it's better to do this:

WinSetOnTop($hGui, "", 1)

to avoid trouble with multiple windows having same title.

Edited by Siao

"be smart, drink your wine"

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.