verminor Posted January 4, 2013 Posted January 4, 2013 (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 Thanks in advance, Vee Edited January 4, 2013 by verminor
dpryan Posted January 4, 2013 Posted January 4, 2013 I don't really know anything about this, but have you tried using #RequireAdmin?
kylomas Posted January 4, 2013 Posted January 4, 2013 (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 January 4, 2013 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
verminor Posted January 4, 2013 Author Posted January 4, 2013 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)
kylomas Posted January 4, 2013 Posted January 4, 2013 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
kylomas Posted January 4, 2013 Posted January 4, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now