Jump to content

programs respawn


xandout
 Share

Recommended Posts

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}")
Link to comment
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.

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