Jump to content

Running AutoIt in the background?


metny
 Share

Recommended Posts

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
Link to comment
Share on other sites

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.
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...