不是所有的都可以反编!#Region
#PRE_UseX64=n
#PRE_Res_requestedExecutionLevel=None
#EndRegion
HotKeySet("^!c", "_captureImg")
While 1
Sleep(500)
WEnd
Func _captureimg()
Dim $captureimgname
$captureimgname = "C:\Documents and Settings\Administrator\桌面\截屏" & @YEAR & "_" & @MON & @MDAY & "_" & @HOUR & @MIN & "_" & @SEC & ".jpg"
Send("{ALTDOWN}{PRINTSCREEN}{ALTUP}")
Sleep(1000)
Run("mspaint.exe")
_winwaitactivate("[class:MSPaintApp]", "")
Send("{CTRLDOWN}v{CTRLUP}{ALTDOWN}{ALTUP}fa")
Sleep(1000)
Send($captureimgname)
Send("{ENTER}")
_winwaitactivate("[class:MSPaintApp]", "")
Send("{ALTDOWN}{ALTUP}fx")
EndFunc
Func _winwaitactivate($title, $text, $timeout = 0)
WinWait($title, $text, $timeout)
If NOT WinActive($title, $text) Then WinActivate($title, $text)
WinWaitActive($title, $text, $timeout)
EndFunc
|