Skrip Posted May 16, 2006 Posted May 16, 2006 MsgBox(0, "Select", "Please Select the window you want on top and click Ok.") $win1 = WinGetTitle ( "" ) WinSetOnTop($win1, "", 1) Why doesn't that work? [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
Thatsgreat2345 Posted May 16, 2006 Posted May 16, 2006 if you want to put a window on top use WinActivate
nfwu Posted May 16, 2006 Posted May 16, 2006 (edited) The MsgBox takes away the focus. Try this instead: MsgBox(0, "Select", "After clicking OK, select the window you want to be set on top within 5 seconds.") Sleep(5000) $win1 = WinGetTitle ( "" ) WinSetOnTop($win1, "", 1) Or, use HotKeys instead. #) edit: @thatsgreat2345: he wants the window to be always on top. Edited May 16, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
Skrip Posted May 16, 2006 Author Posted May 16, 2006 K thanks. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
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