autohotkey中文文档: http://ahkcn.sourceforge.net/docs/AutoHotkey.htm
这是垃圾代码来的。就是个网页挂机的。
goto loop 写循环好用方便。
一边看文档一边写,看到loop之看马上知道怎么继续写了。- ag:
- loop 150
- {
- Sleep 4000
- Random, m1, 400, 600
- Random, m2, 300, 400
- MouseMove, m1, m2
- Sleep 1000
- Click 1
- Sleep 1000
- Send dir{Enter}
- Sleep 1000
- Send ls {Enter}
- Sleep 1000
- Send {Enter}
- Sleep 1000
- Send {Enter}
- Sleep 1000
- send ddddd{Enter}
- Sleep 1000
- send echo xxxxxxxxxxxxxxxxxxxxx{Enter}
- Sleep 1000
- send echo hahahhaha23423424242i
- MouseMove, m1, m2
- Sleep 1000
- Click 1
- Sleep 1000
- Send dir{Enter}
- Sleep 1000
- Send ls {Enter}
- Sleep 1000
- Send {Enter}
- Sleep 1000
- Send {Enter}
- Sleep 1000
- send ddddd{Enter}
- Sleep 1000
- send echo xxxxxxxxxxxxxxxxxxxxx{Enter}
- Sleep 1000
- send ps{Enter}
- }
-
- sleep 1000
- send {Browser_Refresh}
-
- Sleep 3000
- MouseMove, 377, 121
- Click 1
- sleep 1000
- Click 1500
- MouseMove, 838, 400
- Click 1
- sleep 1500
- Click 1
-
- goto ag
复制代码
|