AutoHotkey 魔兽世界 (2)

作者:reistlin 发布时间:September 7, 2019 分类:随写随意

wow.gif

MySkill := Array("!q", "!w", "!c", "!v")
 
Loop
{
if WinExist("魔兽世界")
WinClose ;
Sleep 5000
 
WinActivate, 暴雪战网
Sleep 5000
Send, {NumpadEnter}
Sleep 5000
 
WinActivate, 魔兽世界
Sleep 15000
MouseClick, left, 1255,355, 2, 100
Sleep 15000
MouseClick, left, 1255,1325, 1, 100
Sleep 15000
 
	Loop, 2
	{
	Random, rand, 15000, 30000
	Sleep %rand%
	Send {Space}
 
	Random, rand, 15000, 30000
	Sleep %rand%
	Random, num, 1, 4
	var = %num%
	Send  % MySkill [var] 
	}
}
Return
 
F12::Pause