o icic, thats the XPskill value, got it =)
ok, here is the script that i edit from ur codes
all the values are correct, still dont know why the one i made earlier work sometimes some doesnt
anyways, this one works and look easy, so i will use this
output X,Y
ok, here is the script that i edit from ur codes
all the values are correct, still dont know why the one i made earlier work sometimes some doesnt
anyways, this one works and look easy, so i will use this
output X,Y
Code:
ExtInt(ByRef pSource, pOffset = 0, pIsSigned = false, pSize = 4)
{
Loop %pSize%
result += *(&pSource + pOffset + A_Index-1) << 8*(A_Index-1)
if (!pIsSigned OR pSize > 4 OR result < 0x80000000)
return result
return -(0xFFFFFFFF - result + 1)
}
Process, Exist,Conquer.exe
pid = %ErrorLevel%
Loop
{
VarSetCapacity(Xcoord,4,0)
VarSetCapacity(Ycoord,4,0)
ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",0x4E1028,"Str",Xcoord,"UInt",4,"UInt *",0)
DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",0x4E102C,"Str",Ycoord,"UInt",4,"UInt *",0)
XXC:=( "" . ExtInt(Xcoord))
YYC:=( "" . ExtInt(Ycoord))
MouseGetPos, , , id, control
ToolTip, `nx%XXC%`ny%YYC%
sleep 500
}
^q::pause
^r::reload