memory read @RHCP Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
theon
Posts: 124
Joined: 23 Jun 2019, 15:39

memory read @RHCP

02 Dec 2021, 21:03

hello I need help in a script I got here on the forum
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
@RHCP
User avatar
boiler
Posts: 16903
Joined: 21 Dec 2014, 02:44

Re: memory read @RHCP  Topic is solved

02 Dec 2021, 21:43

The syntax of this line is wrong:

Code: Select all

manaa:= mem.read(%address%, "Int")
It should be:

Code: Select all

manaa:= mem.read(address, "Int")
theon
Posts: 124
Joined: 23 Jun 2019, 15:39

Re: memory read @RHCP

02 Dec 2021, 22:35

boiler wrote:
02 Dec 2021, 21:43
The syntax of this line is wrong:

Code: Select all

manaa:= mem.read(%address%, "Int")
It should be:

Code: Select all

manaa:= mem.read(address, "Int")

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, float, 0.0 
; 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:

manaa:= mem.read(address, "Int")
manas:

msgbox, %manaa%


return 


got a lot, thank you !!! :superhappy: :superhappy: :superhappy: :superhappy:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, scriptor2016, ShatterCoder and 104 guests