Emiel Wieldraaijer Posted November 10, 2006 Share Posted November 10, 2006 (edited) Hi ... i thought it was already posted but i couldn't find it ... Is it possible to detect if the program is already running Thnx Emiel Edited November 10, 2006 by Emiel Wieldraaijer Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
Developers Jos Posted November 10, 2006 Developers Share Posted November 10, 2006 Hi ... i thought it was already posted but i couldn't find it ...Is it possible to detect if the program is already runningThnxEmiellook at _SingleTon() in the helpfile ... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
chie Posted November 11, 2006 Share Posted November 11, 2006 wasnt this also in FAQ?.... Put this in the beginning of your script: $g_szVersion = "My script 1" ;this is the discription of your script because if you will copy this into 2 different scripts & want to run them both 1 script will exit all the time, because it will detect, that "My script 1" is already running If WinExists($g_szVersion) Then Exit ; Exits without notification if 1 copy is already running AutoItWinSetTitle($g_szVersion) Link to comment Share on other sites More sharing options...
tannerli Posted November 11, 2006 Share Posted November 11, 2006 or just use ProcessExists() if you know the name of the process Link to comment Share on other sites More sharing options...
Valik Posted November 11, 2006 Share Posted November 11, 2006 or just use ProcessExists() if you know the name of the processYou should be shot one hundred and thirty-seven times for even suggesting this stupid method. Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted November 11, 2006 Author Share Posted November 11, 2006 @All Thnx hahahaha ProcessExists doesn't work .. because then you wouldn't be able to start the program.. Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
/dev/null Posted November 11, 2006 Share Posted November 11, 2006 (edited) You should be shot one hundred and thirty-seven times for even suggesting this stupid method.using a M61 Vulcan, this would take ~ 1,37 seconds. Fast enough ... http://en.wikipedia.org/wiki/M61_VulcanEDIT: With this baby you can do it even faster....http://www.cnn.com/2003/BUSINESS/06/26/australia.metalstorm/http://www.youtube.com/watch?v=q5Y5-Zw5TW0http://youtube.com/watch?v=67OYIk1woiICheersKurt Edited November 11, 2006 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * 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