lekremyelsew Posted February 14, 2007 Posted February 14, 2007 Is there a way to detect if a script is ran and it is running again, and if so is there away to have a script run a Func when another instance of a script is ran? My thought was to _PostMessage() and have the script be able to detect it so it can do something, but I don't know how to have an AU3 react to system messages. Hot Corners Rulez!
lekremyelsew Posted February 14, 2007 Author Posted February 14, 2007 Oh sorry!!! Wrong forum!!! Hot Corners Rulez!
Moderators SmOke_N Posted February 14, 2007 Moderators Posted February 14, 2007 _SingleTon() Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
MHz Posted February 14, 2007 Posted February 14, 2007 Perhaps this may work. Make sure your scriptname is different to any other. Switch UBound(ProcessList(@ScriptName)) Case 1 ; Case 2 function() Case Else Exit EndSwitch
lekremyelsew Posted February 20, 2007 Author Posted February 20, 2007 I get the way that works but, is there a way to have the currently running script do the action instead of the 2nd one that gets ran? Hot Corners Rulez!
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