Sign in to follow this  
Followers 0
verminor

Script always returns a 0 value

8 posts in this topic

#1 ·  Posted (edited)

Hello fellow members,

Today I finally took the time to get into memory reading using AutoIT, but for some reason I keep getting a 0 value as result.

Since I thought I probably did something wrong I decided to watch a tutorial and did exactly what the guy in the video did, but I kept getting the 0 value.

I'm actually starting to believe that it's OS related, since I use windows 8.

This is the script I tried:

#include <NomadMemory.au3> ;because you need this for _memread functions

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

while 1
$Process = _MemoryOpen(ProcessExists('Tutorial-i386.exe'))
If Not @error Then
$Value = _MemoryPointerRead($Address, $Process, $Offset)
If Not @error Then ToolTip($Value[1],0,0)

_MemoryClose($Process)
EndIf

Sleep(100)
WEnd

If anyone experienced the same issue and found a fix for this I would really appreciate if you could share it :D

Thanks in advance,

Vee

Edited by verminor

Share this post


Link to post
Share on other sites



I don't really know anything about this, but have you tried using #RequireAdmin?

Share this post


Link to post
Share on other sites

Still doesn't work :S

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

verminor,

I have never used this udf but the following seems pertinent.

I don't see any verification that

(ProcessExists('Tutorial-i386.exe')
will return a pid and how do you know that
$Address = 0x00690380
is within this address space, assuming that it exists?

kylomas

edit: spelling

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

Well, even this simple script doesn't work:

#RequireAdmin
#include  ;because you need this for _memread functions

$PID=WinGetProcess("Tutorial-i386.exe")
$hMem= _MemoryOpen($PID)

while 1

$Mem_Read = _MemoryRead('0x' & '001FF4B0', $hMem)
ToolTip($Mem_Read,0,0)

Sleep(100)
WEnd

_MemoryClose($hMem)

Share this post


Link to post
Share on other sites

verminor,

You are still not testing for the existence of the program you are after.

like

if processexists("some name") then ...

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

That doesn't make any difference, lol.

Share this post


Link to post
Share on other sites

Ok, good luck

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0