Sign in to follow this  
Followers 0
giogio

winsetontop

3 posts in this topic

#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



#2 ·  Posted (edited)

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

tanks for your attention.

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