Jump to content

Window detection whilst running a script?


Recommended Posts

I've read everywhere about detecting window titles and closing them but how do you go about running through a script and it also be checking for a window title to appear at any time?

Would that have to be another seperate script waiting for a window title or can it be on the lookout for it yet continue running the rest of script?

Thanks for any help - really appreciate it :)

Link to comment
Share on other sites

or do something like this:

$title = 'known part of the title'

$search = 'title you are searching for'

Do
    Sleep(10)
Until WinGetTitle($title,'') = $search
Edited by jokke
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.
Link to comment
Share on other sites

or do something like this:

$title = 'known part of the title'

$search = 'title you are searching for'

Do
    Sleep(10)
Until WinGetTitle($title,'') = $search
I don't think that meets the specs of letting the script continue running while monitoring for the window:

...running through a script and it also be checking for a window title to appear at any time?

:)
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...