xEviiLx Posted January 9, 2018 Share Posted January 9, 2018 (edited) I'm trying to read value of a base pointer + offset. Spoiler Like: address=process+number offset are 2 or more With only address I can easily the value but with base addres (pointer) I really don't know how I can do that. Spoiler Now I'm not at home, when I back I give more details ^^" Anyway im using NomadMemory (I think the lastest). Edited January 9, 2018 by xEviiLx Link to comment Share on other sites More sharing options...
water Posted January 9, 2018 Share Posted January 9, 2018 Could you please tell us which program you try to automate or which problem you try to solve. Working with memory can get quite complex and most of the time there are easier and more reliable solutions available. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
xEviiLx Posted January 9, 2018 Author Share Posted January 9, 2018 54 minutes ago, water said: Could you please tell us which program you try to automate or which problem you try to solve. Working with memory can get quite complex and most of the time there are easier and more reliable solutions available. Yeah, of course. In this moment I only want know how to use it -> with pointer. Personal curiosity (I know the rules) Link to comment Share on other sites More sharing options...
toto22 Posted February 26, 2018 Share Posted February 26, 2018 Here, an old example that works for older auto-it versions. expandcollapse popup;#SingleInstance force ;#RequireAdmin SetPrivilege("SetDebugPrivilege", 1) $struct = DllStructCreate("dword") DllStructSetData($struct, 1, 11) $ptr = DllStructGetPtr($struct) #include <NomadMemory2.au3> #include <WindowsConstants.au3> ;#include <MsgBoxConstants.au3> Opt("WinTitleMatchMode", -1) ;$staticOffset = Dec("000BB038") $PID = WinGetProcess("s") $sModule = "s.exe" $StaticOffset = 0x000BB038 $ah_Handle = _MemoryOpen($PID) $exeBaseAddr = _MemoryModuleGetBaseAddress($PID, $sModule) + $StaticOffset dim $Offset[3] = [0, 0x0, "0x6F4"] $Process = _MemoryOpen(ProcessExists("s.exe")) If Not @error Then $value = _MemoryPointerRead($exeBaseAddr, $Process,$Offset) MsgBox(1,"",$value[1]) _MemoryClose($Process) EndIf Sleep(100) Link to comment Share on other sites More sharing options...
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