Sign in to follow this  
Followers 0
metny

Running AutoIt in the background?

2 posts in this topic

#1 ·  Posted (edited)

Hello!

I just started learning AutoIt and was wondering how to be able to make a script run in the background and then run when a certain window pops up?

For instance, if I wanted to close an unwanted popup automatically every-time it came up?

How do I do this without running the script manually every-time?

Thank you!

Edited by metny

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

you could make a script similar to the one below and then place it in @startupdir.

While 1
    WinWait("Calculator")
    MsgBox(0,"Test","Calculator is active.")
WEnd

Edit:Made code more clear.

Edited by SolidSnake

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