举报
回复 小熊出山 ...或者...企鹅图标上面那个A2图标即可插入 afan 发表于 2012-3-31 06:48
#include <Misc.au3> if _Singleton("hello",1) = 0 Then Msgbox(64,"警告!","该程序已经运行了哦,请不要反复点击!") Exit EndIf
$1 = ProcessExists(@ScriptName) $list = ProcessList(@ScriptName) For $i = 1 To $list[0][0] If $list[$i][1] <> $1 Then MsgBox(0,"请注意",@ScriptName & "已经运行了,不要重复运行.") Exit EndIf Next
回复 zldfsz 一直都有,你没注意罢了 afan 发表于 2012-3-31 06:59
#NoTrayIcon #include <ScreenCapture.au3> #include <Misc.au3> _Singleton("TheNameOfMyScript") $sDir = "E:\Print" & "\" & @YEAR & "-" & @MON & "-" & @MDAY If Not FileExists($sDir) Then DirCreate($sDir) HotKeySet('{PRINTSCREEN}', '_Capture') HotKeySet('{ESC}', '_Quit') While 1 Sleep(100) WEnd Func _Capture() _ScreenCapture_Capture($sDir & '\' & @HOUR & @MIN & @SEC & '.jpg') EndFunc Func _Quit() Exit EndFunc
$1 = ProcessExists("xxx.exe")
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-25 05:22 , Processed in 0.068672 second(s), 13 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.