I suck quite hard at Autohotkey scripts and I have this source from Kalle's github but it only works with chrome, can we change this so it works with flash player? and if so can someone change it for me? The Autoloot works fine just the ^Numpad 1-6
Code:
#NoEnv
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%
SetKeyDelay 0
SetMouseDelay 0
SetTitleMatchMode 2
Suspend on
GroupAdd rotmg, Adobe Flash Player 11
GroupAdd rotmg, Realm of the Mad God
WinNotActive()
WinActive()
{
Suspend Off
WinWaitNotActive ahk_group rotmg
{
WinNotActive()
}
}
WinNotActive()
{
Suspend on
WinWaitActive ahk_group rotmg
{
WinActive()
}
}
;Auto loot V2! FASTER!
RButton::
SendMode Event
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY, A
ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\searchimage.png
imageLocX += 0
imageLocY -= 70
Xinc = 640
Yinc = 635
{
{
MouseMove, imageLocX + Xinc, imageLocY + Yinc
SendEvent {LButton Down}
SendEvent {LButton Up}
SendEvent {LButton Down}
SendEvent {LButton Up}
}
}
MouseMove, mousePosX, mousePosY
; select all 8 slots while trading
^Numpad3::
SendMode Event
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY, A
ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\trade.png
Xinc = 640
Yinc = 635
Loop 2
{
Loop 4
{
MouseClick, Left, imageLocX+Xinc, imageLocY-Yinc, 1
Xinc += 44
}
Xinc = 0
Yinc -= 50
}
MouseMove, mousePosX, mousePosY
return
; pick up all 8 slots
^Numpad2::
SendMode Event
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY,
ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\searchimage.png
imageLocX += 25
imageLocY += 55
Xinc = 640
Yinc = 635
Loop 2
{
Loop 4
{
MouseMove, imageLocX + Xinc, imageLocY + Yinc
SendEvent {LButton Down}
MouseMove, imageLocX + Xinc + 3, imageLocY + Yinc + 3
Sleep 260
MouseMove, imageLocX + Xinc, imageLocY + Yinc - 125
SendEvent {LButton Up}
Sleep 260
Xinc += 44
}
Xinc = 0
Yinc += 50
}
MouseMove, mousePosX, mousePosY
Return
; drop all items in chest
^Numpad1::
SendMode Event
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY, A
ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\searchimage.png
imageLocX += 25
imageLocY -= 70
MouseMove, imageLocX, imageLocY
Xinc = 0
Yinc = 0
Loop 2
{
Loop 4
{
MouseMove, imageLocX + Xinc, imageLocY + Yinc
SendEvent {LButton Down}
MouseMove, imageLocX + Xinc + 3, imageLocY + Yinc + 3
Sleep 260
MouseMove, imageLocX + Xinc, imageLocY + Yinc + 125
SendEvent {LButton Up}
Sleep 260
Xinc += 44
}
Xinc = 0
Yinc += 50
}
MouseMove, mousePosX, mousePosY
Return
; toggle chat
^Numpad4::
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY, A
Send {Esc}
Loop
{
ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\charsel.png
if ErrorLevel = 1
continue
else
break
}
MouseClick, Left, imagelocx-400, imagelocy-460
MouseClick, Left, imagelocx - 560, imagelocy-240
Send {Esc}
Return
; set a teleport target
^Numpad5::InputBox, tptarget, Teleport target, Please enter a person to teleport to:
; teleport to the target set with ^n
^Numpad6::
clipboard = /teleport %tptarget%