|
发表于 2010-6-3 16:34:56
|
显示全部楼层
解除密碼: 135246, 定議些Hotkey,鍵盤就沒作用了,鼠標你可以用MouseMove(),循環移到角落
break(0)
#include <Process.au3>
#include <GUIConstants.au3>
#include <file.au3>
HotKeySet("a", "ShowMessage")
HotKeySet("b", "ShowMessage")
HotKeySet("c", "ShowMessage")
HotKeySet("d", "ShowMessage")
HotKeySet("e", "ShowMessage")
HotKeySet("f", "ShowMessage")
HotKeySet("g", "ShowMessage")
HotKeySet("h", "ShowMessage")
HotKeySet("i", "ShowMessage")
HotKeySet("j", "ShowMessage")
HotKeySet("k", "ShowMessage")
HotKeySet("l", "ShowMessage")
HotKeySet("m", "ShowMessage")
HotKeySet("n", "ShowMessage")
HotKeySet("o", "ShowMessage")
HotKeySet("p", "ShowMessage")
HotKeySet("q", "ShowMessage")
HotKeySet("r", "ShowMessage")
HotKeySet("s", "ShowMessage")
HotKeySet("t", "ShowMessage")
HotKeySet("u", "ShowMessage")
HotKeySet("v", "ShowMessage")
HotKeySet("w", "ShowMessage")
HotKeySet("x", "ShowMessage")
HotKeySet("y", "ShowMessage")
HotKeySet("z", "ShowMessage")
HotKeySet("{BS}", "ShowMessage")
HotKeySet("{DEL}", "ShowMessage")
HotKeySet("{LEFT}", "ShowMessage")
HotKeySet("{RIGHT}", "ShowMessage")
HotKeySet("{LSHIFT}", "ShowMessage")
HotKeySet("{RSHIFT}", "ShowMessage")
Dim $x , $y
if $CmdLine[0]>0 then
$x= $CmdLine[1]
$y= $CmdLine[2]
Else
$x=0
$y=0
endif
$bLoop = 1
WinActivate ("Keyboad"," ")
Func ShowMessage()
dim $test=1
EndFunc
While $bLoop = 1
;Run("mouse.exe", "")
$input = InputBox("Keyboad", " "," ","*",200,30,$x,$y )
;$input = InputBox("Password box", "Please type in correct password and click OK","","*")
$verify = StringLeft($input, 6)
; If $long <> 8 or $verify <> "@" Then
if $verify <> "135246" Then
MsgBox(4096, "Error", "Password is wrong")
$long = StringLen($input)
Else
$bLoop = 0
EndIf
sleep(1500)
wend
;ProcessClose("mouse.exe") |
|