Jump to content

Recommended Posts

Posted

#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

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"

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
  • Recently Browsing   0 members

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