Jump to content

Check if program is running


Recommended Posts

  • Developers

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

look at _SingleTon() in the helpfile ... :whistle:

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

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

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

http://en.wikipedia.org/wiki/M61_Vulcan

EDIT: 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-Zw5TW0

http://youtube.com/watch?v=67OYIk1woiI

Cheers

Kurt

Edited 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

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