Created
June 24, 2013 20:20
-
-
Save wotupset/5853267 to your computer and use it in GitHub Desktop.
aotohotkey test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#x:: | |
MouseMove, 355,285 | |
Click | |
Sleep 500 | |
Loop,5 ;三格來回走 人物一開始需站在純點 | |
{ | |
Random, rand, 0,10 | |
Random, rand2, 0,1 | |
var := % rand2 ? -1 : 1 | |
tmpx:= % 260 + rand*var | |
tmpy:= % 215 + rand*var | |
;msgbox x=%tmpx% y=%tmpy% | |
MouseMove,%tmpx%,%tmpy%,10 | |
Sleep % 50 +rand | |
Click | |
Sleep % 500 +rand | |
tmpx:= % 390 + rand*var | |
tmpy:= % 310 + rand*var | |
;msgbox x=%tmpx% y=%tmpy% | |
MouseMove,%tmpx%,%tmpy%,10 | |
Sleep % 50 +rand | |
Click | |
Sleep % 500 +rand | |
} | |
Return | |
#s:: | |
Loop ,10 ;單格自動來回走 人物一開始需站在純點 | |
{ | |
Random, rand, 0,10 | |
Random, rand2, 0,1 | |
var := % rand2 ? -1 : 1 | |
tmpx:= % 290 + rand*var | |
tmpy:= % 285 + rand*var | |
;msgbox x=%tmpx% y=%tmpy% | |
MouseMove,%tmpx%,%tmpy%,10 | |
Sleep % 50 +rand | |
Click | |
Sleep % 500 +rand | |
tmpx:= % 350 + rand*var | |
tmpy:= % 235 + rand*var | |
;msgbox x=%tmpx% y=%tmpy% | |
MouseMove,%tmpx%,%tmpy%,10 | |
Sleep % 50 +rand | |
Click | |
Sleep % 500 +rand | |
} | |
Return | |
#z:: | |
Loop ,5 | |
{ | |
Random, rand, 0,10 | |
Random, rand2, 0,1 | |
var := % rand2 ? -1 : 1 | |
tmpx:= % 300 + rand*var | |
msgbox %tmpx% | |
} | |
Return | |
Esc::ExitApp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment