Sign in to follow this  
Followers 0
xandout

programs respawn

3 posts in this topic

Hey all i have about 8 scripts im using to automate system restores but when i compile one ie flash.au3 to Flash.exe i end up with 80 no joke 80 flash.exe's running how can i stop this?

Run('flash.exe')
WinWait("Adobe Flash Player Plugin Setup: Completed","Show &details")
If Not WinActive("Adobe Flash Player Plugin Setup: Completed","Show &details") Then WinActivate("Adobe Flash Player Plugin Setup: Completed","Show &details")
WinWaitActive("Adobe Flash Player Plugin Setup: Completed","Show &details")
Send("{ALTDOWN}c{ALTUP}")

Share this post


Link to post
Share on other sites



Umm, is your script name the same as the program you are trying to run?

By default, AutoIt locates files in the same folder as the script before anywhere else. In the case your script has the same name as the program, the script will run a new instance of itself recursively.

Share this post


Link to post
Share on other sites

Thank YoU!!!!!!!!!!!!! it worked I renamed flash.au3 to flsh.au3 compiled and it worked.

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