Sign in to follow this  
Followers 0
Emiel Wieldraaijer

Check if program is running

7 posts in this topic

#1 ·  Posted (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 by Emiel Wieldraaijer

Best regards,Emiel Wieldraaijer

Share this post


Link to post
Share on other sites



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:

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

or just use ProcessExists() if you know the name of the process

Share this post


Link to post
Share on other sites

or just use ProcessExists() if you know the name of the process

You should be shot one hundred and thirty-seven times for even suggesting this stupid method.

Share this post


Link to post
Share on other sites

@All Thnx

hahahaha ProcessExists doesn't work .. because then you wouldn't be able to start the program..


Best regards,Emiel Wieldraaijer

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 ... :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 *

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