Hi Evan!
Before some days you have made a program for me that reads memory address.
I am trying to make an XP skill lvler which will only click when it needs.
Code:
msgbox,4097,, Select client and press OK to continue
WinGet,id, ID, [C
;some other code which decides which x,y will give at XP skill function
XPSkillFunction(x,y,id)
{
Loop
{
CharXP:=ReadMemoryNumber(0x5DB364,"[Conquer2.0]")
If (CharXP = "100")
{
ControlClick, x%x% y%y%,ahk_id %id%,,right
Sleep,400
}
else
break
}
}
ReadMemoryNumber(MADDRESS,PROGRAM)
{
winget, pid, PID, %PROGRAM%
SetFormat, IntegerFast, d
VarSetCapacity(MVALUE,4,0)
ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Str",MVALUE,"UInt",4,"UInt *",0)
Loop 4
result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)
return, result
}
That is the part of XP skill lvler, including your code for reading memory.
It works perfect, if one client is opened. But if I have 2 clients opened, it reads the XP bar of the client I play on, but I want it to read the memory address of the other client.
All I want to do is... hook/select one client and read the memory address only from it.
Help me when you can.
Thanks in advance,
Alexios
P.S. How did you do with your exams?