作者enthos (影斯)
看板CGI-Game
标题[imperion] xen auto raid script.
时间Sun Nov 22 23:22:35 2009
软体安装参考: EzHotKey 版.
\ 要连成一行.
screen: 1024x768.
software: Firefox 按 F11(Full screen).
由於 Full screen 的位置不同,有 im2.ahk 及 im3.ahk 不同 script.
我的 imp.txt 如下:
http://u1.imperion.org/fleetBase/mission/1/planetId/94479901
copy "94479901"(我用 pietty,左键 mark 即可), 按 F5 即可动作。
手动的做法:
按 ctrl-t, 把记录的 url 整行 paste 到 firefox,
按 xnair 栏位位置, 填入 35, 点左边, 按 PageDown (换下页)
点 raid, 移到 Action! 位置,再按左键。
新的做法: 把 "94479901" 存入 copy-paste buffer, 按 ctrl-v。
其他同上。不自动按 Action! 的原因是因为网路常 lag。
中间加入的 Sleep 都是因为系统 lag 而调整的,网路、机器快
的人可以试着改小一点。顺便把最後的 MouseMove 改成 MouseClick,
再加上 {CTRLDOWN}w{CTRLUP} ,就是全自动化的一次攻击。
im2.ahk:
; Imperion - Microsoft Internet Explorer
F5::
WinWait, Imperion - Mozilla Firefox,
IfWinNotActive, Imperion - Mozilla Firefox, , WinActivate, \
Imperion - Mozilla Firefox,
WinWaitActive, Imperion - Mozilla Firefox,
Sleep, 1000
Send, {CTRLDOWN}t{CTRLUP}
WinWait, Mozilla Firefox,
IfWinNotActive, Mozilla Firefox, , WinActivate, Mozilla Firefox,
WinWaitActive, Mozilla Firefox,
; Send,
http://u1.imperion.org/fleetBase/mission/1/planetId/94400506{ENTER}
Sleep, 1000
Send,
http://u1.imperion.org/fleetBase/mission/1/planetId/\
{CTRLDOWN}v{CTRLUP}{ENTER}
Sleep, 8000
WinWait, Imperion - Mozilla Firefox,
IfWinNotActive, Imperion - Mozilla Firefox, , WinActivate,\
Imperion - Mozilla Firefox,
WinWaitActive, Imperion - Mozilla Firefox,
MouseClick, left, 272, 661
Sleep, 3000
Send, 35
MouseClick, left, 68, 643
Sleep, 3000
Send, {PGDN}
MouseClick, left, 141, 289
Sleep, 1000
MouseMove, 820, 421
Return
im3.ahk:
同上
WinWaitActive, Imperion - Mozilla Firefox,
MouseClick, left, 272, 680 ; <= 修改这里.
Sleep, 3000
Send, 35
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.22.98
1F:推 cluclu:哇 这是要用AHK吗...虽然我有在用可是只会基本功能 11/23 20:08