Jump to content
Sign in to follow this  
cad29

HELP IN MY PROGRAM

Recommended Posts

Hi i need help in my program i have a program name cad.exe and once you click that it goes into the system try but i want to add something on it that once its running already and once you click the cad.exe again it will give you a message that the cad program is running already i tried this script but it doesnt work

If ProcessExists("CAD.EXE") Then

MsgBox(16,"DOW IMAC","DOW PROGRAM is running already " & @CRLF & "Please check the systemtray")

Exit

Else

CONTINUE()

ENDIF

but everytime i click the cad.exe it always says that my program is running even do its my first time to run that program thanks for your help in advanced

Share this post


Link to post
Share on other sites

this is from the helpfile...

#include "Misc.au3"
if _Singleton("test\test",1) = 0 Then
    Msgbox(0,"Warning","An occurence of test is already running")
    Exit
EndIf
Msgbox(0,"OK","the first occurence of test is running")

CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

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  

×
×
  • Create New...