Jump to content

how do i keep focus to one window


vladedoty
 Share

Recommended Posts

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

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