he thinks the addres more I can't apply it to men.read why?
code
Code: Select all
#include <classMemory>
if (_ClassMemory.__Class != "_ClassMemory")
{
msgbox class memory not correctly installed.
ExitApp
}
mem := new _ClassMemory("ahk_exe ldvboxheadless.exe", "", hProcessCopy)
if !IsObject(mem)
{
if (hProcess = "")
msgbox OpenProcess failed. If the target process has admin rights, then the script also needs to be ran as admin. Consult A_LastError for more information.
else msgbox The program isn't running (not found) or you passed an incorrect program identifier parameter.
ExitApp
}
SetFormat, integerFast, Hex
; I just put the pattern in an array so that it's a bit neater with 2 function calls
aPattern := [0xF5, 0x05, 0x00, 0x00, 0xFE, 0xFF, 0xFF, 0xFF, 0x00, 0x00]
address := mem.processPatternScan(,, aPattern*)
menu:
SetFormat, float, 0.0
manaa:= mem.read(%address%, "Int")
msgbox, %manaa%
return