--传奇 32191 2641
--第一排第一个 7324 27052
--第二排第一个 6121 34111
--第三排第一个 4815 41808
--第一个和第二个之间横坐标间隔 4000
--传家宝 54805 49049
--使用说明:
--预设后退键一键反复进出
--前进键一键勾满所有传家宝
--鼠标中键按下获取鼠标指针坐标
function OnEvent(event, arg)
if (event == "MOUSE_BUTTON_PRESSED" and arg == 3) then
x,y = GetMousePosition()
OutputLogMessage("X: %d || Y: %d\n",x,y)
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
PressAndReleaseKey("escape")
Sleep(20)
PressAndReleaseKey("r")
Sleep(10)
MoveMouseTo(28811,43402)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseMouseButton(1)
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
MoveMouseTo(32191,2641)
Sleep(200)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(7324,27052)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(11324,27052)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(15324,27052)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(19324,27052)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(23324,27052)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(27324,27052)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(6121,34111)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(10121,34111)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(14121,34111)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(18121,34111)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(22121,34111)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(26121,34111)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(4815,41808)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(8815,41808)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
MoveMouseTo(20815,41808)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
MoveMouseTo(54805,49049)
Sleep(10)
PressAndReleaseMouseButton(1)
Sleep(10)
PressAndReleaseKey("escape")
Sleep(10)
end
end