MIN Posted April 28, 2006 Share Posted April 28, 2006 How to check process ,Can't run again If ProcessExists("autoit3.exe") Then MsgBox(0, "Wrong", "autoit3 is running.,Can't run again") EndIf Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 28, 2006 Share Posted April 28, 2006 while 1 If ProcessExists("autoit3.exe") then Processclose("autoit3.exe") Msgbox(0,"Wrong","Autoit3 is already running, Can't run again") endif wend Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 28, 2006 Moderators Share Posted April 28, 2006 Your probably looking for a Semaphore, look up _SingleTon() in the Beta help file. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
nfwu Posted April 28, 2006 Share Posted April 28, 2006 (edited) 您只想要一个时后只有一个program, 是不是? AutoIt 帮助文件有这个例子: $Version = "My Script" If WinExists($g_szVersion) Then Exit;已经有 AutoItWinSetTitle($g_szVersion) fang ta 在前面. English Translation (英文译文): You only want one program to be running at one time, am i right? From the AutoIt Help file: Put it at the front of your script. #) EDIT: Forgot to mention that this is my first post after my absence from the forums for 1-2 months... not to say that it's long or anything... but things here happen so fast. What's the current beta version? Edited April 28, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 28, 2006 Moderators Share Posted April 28, 2006 EDIT: Forgot to mention that this is my first post after my absence from the forums for 1-2 months... not to say that it's long or anything... but things here happen so fast. What's the current beta version?Shows this as your last post 9 days ago ... but welcome back all the same.nfwu Posted on: Apr 19 2006, 08:17 AM3.1.120 I believe is the latest beta. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 28, 2006 Share Posted April 28, 2006 no 28th April, 2006 - v3.1.1.121 (beta) just released today Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 28, 2006 Moderators Share Posted April 28, 2006 no 28th April, 2006 - v3.1.1.121 (beta) just released todayIt was released 5 hours after I posted! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MIN Posted May 4, 2006 Author Share Posted May 4, 2006 That is OK,Thanks. $var = ProcessList("autoit3.exe") If $var[0][0] >1 Then MsgBox(0,"错误","本程序已经运行,请不要重复执行") EndIF Exit. 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