giogio Posted January 28, 2008 Posted January 28, 2008 #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
Siao Posted January 28, 2008 Posted January 28, 2008 (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 January 28, 2008 by Siao "be smart, drink your wine"
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now