其實只是AutoIT功能強大而已, 而且簡單易用, 整個程式只用了三十幾行碼, 原碼公開如下:
HotKeySet("#{UP}", "MUP")
HotKeySet("#{DOWN}", "MDOWN")
HotKeySet("#{LEFT}", "MLEFT")
HotKeySet("#{RIGHT}", "MRIGHT")
HotKeySet("#;", "MCLICKL")
HotKeySet("#{DEL}","MCLICKR")
While 1
sleep(100)
WEnd
Func MUP()
$MPOS=MouseGetPos()
MouseMove($MPOS[0],$MPOS[1]-10,1)
EndFunc
Func MDOWN()
$MPOS=MouseGetPos()
MouseMove($MPOS[0],$MPOS[1]+8,1)
EndFunc
Func MRIGHT()
$MPOS=MouseGetPos()
MouseMove($MPOS[0]+8,$MPOS[1],1)
EndFunc
Func MLEFT()
$MPOS=MouseGetPos()
MouseMove($MPOS[0]-10,$MPOS[1],1)
EndFunc
Func MCLICKR()
$MPOS=MouseGetPos()
MouseClick("right",$MPOS[0],$MPOS[1])
EndFunc
Func MCLICKL()
$MPOS=MouseGetPos()
MouseClick("left",$MPOS[0],$MPOS[1])
EndFunc
有興趣可自行修改並用AutoIT再編譯,以適合各愛機使用!
[
本帖最後由 sammy5390 於 2009-6-22 21:48 編輯 ]