metny Posted October 17, 2006 Share Posted October 17, 2006 (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 October 17, 2006 by metny Link to comment Share on other sites More sharing options...
FuryCell Posted October 17, 2006 Share Posted October 17, 2006 (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.") WEndEdit:Made code more clear. Edited October 18, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now