Jump to content
Sign in to follow this  
Skrip

Set Active Window On-top

Recommended Posts

Skrip

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]

Share this post


Link to post
Share on other sites
Thatsgreat2345

if you want to put a window on top use WinActivate

Share this post


Link to post
Share on other sites
nfwu

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 by nfwu

Share this post


Link to post
Share on other sites
Skrip

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]

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.