Sign in to follow this  
Followers 0
mist3r

Window detection whilst running a script?

4 posts in this topic

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 :)

Share this post


Link to post
Share on other sites



Use AdLibEnable() to get a small function checking periodically in the background.

Cheers!

:)


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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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.

Share this post


Link to post
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

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