Hello AutoIt community ! I just started coding in AutoIt, and i'm trying to read the value of an address, after some search, I ended up finding this UDF called NomadMemory, that apparently is the best ones out there. Although, since i'm not good at Memory Addresses, Hex, Ascii, etc, I tried to write a simple script that would generate a GUI, with a label that would be updated with the value of a process memory address, here's what I got : #include <NomadMemory.au3>
$pid = ProcessExists("MMer.exe")
$address = "040A2EF8"
$openmem = _MemoryOpen($pid) ;
$Value = _MemoryRead($address, $openmem)
; FORM
$Form1 = GUICreate("Form1", 144, 165, 390, 185)
$listenlabel = GUICtrlCreateLabel($Value, 16, 16, 107, 17)
GUISetState(@SW_SHOW)
; END OF FORM
while 1
GUICtrlDelete($listenlabel)
$listenlabel = GUICtrlCreateLabel($Value, 16, 16, 107, 17)
WEnd So basically this is supposed to do the following : Get the PID of "MMer.exe", open the memory using that PID, read an Address (040A2EF8) from that process, create a form with the value of the address written in it, and update the value every once in a while. Although, it doesn't seem to work, do you see any errors in my code? Thanks in advance !