[HELP] AutoIt Memory Reading with Pointer Address + HEX Offsets menu

User Tag List

Results 1 to 3 of 3
  1. #1
    zewt's Avatar Member
    Reputation
    13
    Join Date
    Nov 2008
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP] AutoIt Memory Reading with Pointer Address + HEX Offsets

    Hey everyone.

    I am attempting to use NomadMemory UDF to obtain some memory address values via a pointer found in the SWTOR section.

    So... if I use just the dynamic address that is current, it works perfect like so:

    HTML Code:
       #include <NomadMemory.au3>
       #RequireAdmin
       $ID=_MemoryOpen(ProcessExists("swtor.exe"))
       $Address=0xF4082830
       
       $value=_MemoryRead($Address,$ID ,"float")
       sleep(1000)
       MsgBox(0,"Value", $value*10)
    Now i wanted to try to get the same value using the pointer address + offsets... this is only returning 0

    I have looked everywhere for some help with this and i can't find any working solution.

    HTML Code:
    #include <NomadMemory.au3>
    #RequireAdmin
    SetPrivilege("SeDebugPrivilege", 1) ;before you do anything else
    
    $ID = ProcessExists("swtor.exe")
    Global $Offset[6] = [0, Dec(798), Dec(504), Dec(14), Dec(8), Dec(100)] ; your multilevel offsets -- enter hex here
    $StaticOffset = 0x00027E8C ;your static offset or green address
    
    $openmem = _MemoryOpen($ID)
    $baseADDR = _MemoryGetBaseAddress($openmem, 1)
    $finalADDR = "0x" & Hex($baseADDR + $StaticOffset) ;this gives you "app.exe+941318"
    
    $r = _MemoryPointerRead($finalADDR, $openmem, $Offset, "float") ;this gives you the final address to read from
    _MemoryClose($openmem)
    
    ;Test if value is correct
    MsgBox(0, "Info", $r[1])
    MsgBox(0, "Info", $finalADDR) ;check what the address is pointing to right now, & check if its same w/ CE
    Last edited by zewt; 01-16-2012 at 01:14 PM.

    [HELP] AutoIt Memory Reading with Pointer Address + HEX Offsets
  2. #2
    zewt's Avatar Member
    Reputation
    13
    Join Date
    Nov 2008
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No one?... ugh... haha i have seen every forum thread and tutorial on this and i still end with the same result.

    Does it make a difference on the 64bit version of windows 7?

  3. #3
    gcrackem's Avatar Member
    Reputation
    5
    Join Date
    Jun 2009
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I used something like this for another game. Try this...

    Code:
    #include <NomadMemory.au3>
    #include <MemoryGetBaseAddressUDF.au3>
    ;
    Global $mainwindow = "swtor.exe"
    
    
    If WinExists($mainwindow) Then
    	global $pid = WinGetProcess($mainwindow)
    	global $pointer = 0x00870970 ;A pointer
    	global $pointer_offset = 0x184 ;Pointer's offset
    
            global $handle = _Memoryopen($pid)
            global $pointer_convert = "0x" & Hex(_MemoryRead($pointer, $handle, "int[32]"), 8)
            global $pointer_new = "0x" & Hex($pointer_convert + $pointer_offset)
            _Memoryclose($pid)
    
    EndIf
    This looks sloppy but it works, hope this helps!

Similar Threads

  1. [guide] how to create a wow bot using autoit (memory reading)
    By zamba1587 in forum WoW Memory Editing
    Replies: 17
    Last Post: 01-23-2017, 03:27 PM
  2. Confused/Help needed -> Memory Reading
    By Holico in forum WoW Memory Editing
    Replies: 18
    Last Post: 04-16-2012, 05:38 PM
  3. [C#]Need help with some memory reading
    By jazerix in forum Programming
    Replies: 1
    Last Post: 10-29-2010, 09:49 AM
  4. [C#/CE help] Need help with memory reading
    By dididii in forum Programming
    Replies: 0
    Last Post: 10-07-2010, 12:26 PM
  5. [Autoit] Problem with Memory reading for looting *resolved*
    By spudstar99 in forum WoW Memory Editing
    Replies: 4
    Last Post: 05-15-2009, 10:26 PM
All times are GMT -5. The time now is 10:35 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search