melover Posted September 23, 2021 Share Posted September 23, 2021 normally i have nothing to do with memory reading but the variables in the loop I'm using i want to use it in my another au3 file I couldn't read anyway my_office.exe+E62E0 + 7290 = 704 msgbox return value mem.au3 Link to comment Share on other sites More sharing options...
melover Posted September 23, 2021 Author Share Posted September 23, 2021 (edited) #RequireAdmin SetPrivilege("SetDebugPrivilege", 1) $struct = DllStructCreate("dword") DllStructSetData($struct, 1, 11) $ptr = DllStructGetPtr($struct) #include <nomadMemory2.au3> #include <WindowsConstants.au3> Opt("WinTitleMatchMode", -1) $PID = WinGetProcess("my_office") $sModule = "my_office.exe" $StaticOffset = 0x000E62E0 $ah_Handle = _MemoryOpen($PID) $exeBaseAddr = _MemoryModuleGetBaseAddress($PID, $sModule) + $StaticOffset MsgBox(1,"",$exeBaseAddr) dim $Offset = 0x7296 $Process = _MemoryOpen(ProcessExists("my_office.exe")) If Not @error Then $value = _MemoryPointerRead($exeBaseAddr, $Process,$Offset) MsgBox(1,"",$value[1]) _MemoryClose($Process) EndIf Sleep(100) Edited September 23, 2021 by Jos Link to comment Share on other sites More sharing options...
Developers Jos Posted September 23, 2021 Developers Share Posted September 23, 2021 Cheat engine? Why are you doing this or what is it you want to accomplish? @all: Please refrain from posting until cleared. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
melover Posted September 23, 2021 Author Share Posted September 23, 2021 I have an office program I want to access the variables formed there from another file Link to comment Share on other sites More sharing options...
Developers Jos Posted September 23, 2021 Developers Share Posted September 23, 2021 Sorry, but that is not clear enough for me and I fail to understand why one needs to read memory for an office program, so please try to explain the purpose of all of this. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
melover Posted September 23, 2021 Author Share Posted September 23, 2021 (edited) the company i work for is the game company , weekly excel list coming ,I transfer excel to the site with the help of image_search.au3 library,work needs to be done fast ,slow to read and write I will use 2 autoit files, one of them will read and the other one will reach those values from ram and process. Edited September 23, 2021 by Jos Link to comment Share on other sites More sharing options...
Developers Jos Posted September 23, 2021 Developers Share Posted September 23, 2021 First of all : Please Copy/Paste without formatting. As to your last post: You still haven't explained what the purpose is of all of this. It is also still totally unclear why you need to read memory! As you already mentioned that you work for a Game company: Please ensure you also read our forum rules as we have some policies against Game automation. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
melover Posted September 23, 2021 Author Share Posted September 23, 2021 optimization is not for the game I am the employee To transfer the incoming excel table there is an autoit that is constantly checking I have to write at the same time. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 24, 2021 Moderators Share Posted September 24, 2021 melover, Let us see if I have any luck getting through to you. Quote weekly excel list coming ,I transfer excel to the site with the help of image_search.au3 library,work needs to be done fast ,slow to read and write I will use 2 autoit files, one of them will read and the other one will reach those values from ram and process. That makes little sense to me. Why do you need to "reach those values from ram and process" and use image-searching when you can use the Excel UDF to read directly from your Excel file? M23 P.S. And just to be absolutely clear - this is still the Mod team determining the legality of the thread, so everyone else please keep out. Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
melover Posted September 24, 2021 Author Share Posted September 24, 2021 I managed to read the memory anyway thanks for everything JockoDundee 1 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