vegetasupersaiyan6@
i need both x coordinate and y coordinate
not on screen coordinates, but map coordinates, because thats the one without shifting 45 degrees
also, 00000C50 doesnt sound right
anyhow, i just pull the functions from followMe and here it is
just insert the memory address for the first 4 lines and u should be set
i need both x coordinate and y coordinate
not on screen coordinates, but map coordinates, because thats the one without shifting 45 degrees
also, 00000C50 doesnt sound right
anyhow, i just pull the functions from followMe and here it is
just insert the memory address for the first 4 lines and u should be set
Code:
targetxxx=
targetyyy=
followxxx=
followyyy=
WinGet,id, ID,[Co
WinActivate, ahk_id %id%
ProcessHandle := DllCall("OpenProcess", "int", 2035711, "char", 0, "UInt", pid, "UInt")
settimer, Main, 700
return
Main:
IfWinNotActive, ahk_id %id%
WinActivate, ahk_id %id%
VarSetCapacity(xxx, 4)
VarSetCapacity(yyy, 4)
DllCall("ReadProcessMemory", "UInt", ProcessHandle, "UInt", targetxxx, "Uint*", xxx, "Uint", 4, "Uint *", 0)
DllCall("ReadProcessMemory", "UInt", ProcessHandle, "UInt", targetyyy, "Uint*", yyy, "Uint", 4, "Uint *", 0)
VarSetCapacity(x2x, 4)
VarSetCapacity(y2y, 4)
DllCall("ReadProcessMemory", "UInt", ProcessHandle, "UInt", followxxx, "Uint*", xxx, "Uint", 4, "Uint *", 0)
DllCall("ReadProcessMemory", "UInt", ProcessHandle, "UInt", followyyy, "Uint*", yyy, "Uint", 4, "Uint *", 0)
unit := Sqrt((xxx - x2x) **2 + (yyy - y2y) **2)
clkxxx := round((xxx - x2x) / unit * 250) + 513
clkyyy := round((yyy - y2y) / unit * 250) + 384
Click, %clkxxx%, %clkyyy%
return
^r::reload
^q::pause