cad29 Posted September 29, 2006 Posted September 29, 2006 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
piccaso Posted September 29, 2006 Posted September 29, 2006 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
Helge Posted September 29, 2006 Posted September 29, 2006 You run your script, named "cad.exe" and you check if there's a process called "cad.exe"running. Of course there is...it's the script's very own process !Anyway, this question has been asked..oh, two, three or maybe four times before...Check out this link : http://www.autoitscript.com/forum/index.ph...ult_type=topics
cad29 Posted October 1, 2006 Author Posted October 1, 2006 Piccaso thanks for your help it work your the man
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