Sign in to follow this  
Followers 0
vladedoty

how do i keep focus to one window

4 posts in this topic

im having trouble keeping focus to one window as others pop up. Is there a command like winsetontop that would keep the focus one only one window while others continuously pop up?

Share this post


Link to post
Share on other sites



so something like this?

Do 
WinActivate("Notepad", "")
Until Not Winexists("Notepad", "")

and then put in the code after this for notepad to do until it closes?

Share this post


Link to post
Share on other sites

so something like this?

Do 
WinActivate("Notepad", "")
Until Not Winexists("Notepad", "")

and then put in the code after this for notepad to do until it closes?

That would work. However make sure you are using the proper titles like "Untitled - Notepad". Also maybe add a small sleep so it dosent kill the cpu.

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

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