[Autoit] MemoryPointerRead

07/02/2013 14:00 loockys#1
Hello everyone, i apologize for my bad english
I would write on this forum to get help. I use as AutoIt programming.
Can you tell me where is the problem please.
thank you in advance

Image: [Only registered and activated users can see links. Click Here To Register...]


Code:
#include <NomadMemory.au3>
SetPrivilege("SeDebugPrivilege", 1)

$Address = 0x00690380
Dim $Offset[2] = [0, 0x0]

$Process = _MemoryOpen(ProcessExists("Tutorial-i386.exe"))
$Valeur = _MemoryPointerRead($Address, $Process, $Offset)

MsgBox(0,"","Resultat : " & $Valeur[1])

_MemoryClose($Process)

Why give me the value zero?

VIdeo :
07/02/2013 17:38 FacePalmMan#2
add this to the top of your script:
Code:
#RequireAdmin
07/02/2013 23:25 Croco™#3
First off all, the offsets are useless:
Code:
Dim $Offset[2] = [0, 0x0]
Because:
0 = 0
0x0 = 0
0x00690380+0x0+0 = 0x00690380

But the questions is, is 0x00690380 the static address or the pointer ?
07/02/2013 23:38 KDeluxe#4
Quote:
Originally Posted by Croco™ View Post
First off all, the offsets are useless:
Code:
Dim $Offset[2] = [0, 0x0]
Because:
0 = 0
0x0 = 0
0x00690380+0x0+0 = 0x00690380
First of all... that's not true.

Code:
_MemoryRead(_MemoryRead(0x00690380)+0)
is not equal to
Code:
_MemoryRead(0x00690380+0)
The first value of the array is unused.


You can try to solve this problem by adding two lines:
Code:
#AutoIt3Wrapper_UseX64=n
#RequireAdmin
07/04/2013 14:16 loockys#5
Thank you for help.
Can you see if my NomadMemory.au3 is not the problem.

Read _MemoryPointerRead gives me a false value and _MemoryRead gives the true value.
I wonder if _MemoryPointerRead can give a true value, it gives me the value 0 why?

[Only registered and activated users can see links. Click Here To Register...]

07/04/2013 19:53 KDeluxe#6
Quote:
Originally Posted by loockys View Post
[Only registered and activated users can see links. Click Here To Register...]
That image shows me, that you're using a 64 bit OS. That's the reason why I told you to add
Quote:
Originally Posted by KDeluxe View Post
Code:
#AutoIt3Wrapper_UseX64=n
#RequireAdmin
Maybe you have to compile your script.

The _Memory-Functions are using the 'wrong' data types, that's the reason why they only work with 32 bit programs.
01/30/2022 19:48 Fernando_Liro#7
any advancement of nomadmemory to use in 64bit games?
02/04/2022 11:49 Fernando_Liro#8
hello everyone, has anyone managed to read in 64bit games? always when I try in 64bit games the return is zero.
02/09/2022 13:13 [Beatrice]#9
Quote:
Originally Posted by Fernando_Liro View Post
hello everyone, has anyone managed to read in 64bit games? always when I try in 64bit games the return is zero.
Simply compile your script as x64?
Code:
#AutoIt3Wrapper_UseX64=y