mingy Posted July 31, 2015 Share Posted July 31, 2015 (edited) Hello I am trying to make a script were I use variable I read from a running executable. But these values change every time I start the program again or even sometimes just after some hours. However I found the variable that I look for which doesn't change, but those addresses are different and I can't read them in AutoIT $variable_1 = _MemoryRead('0x' & '051C7AE0', $MemoryOpen) $variable_2 = _MemoryRead('0x' & '051C7AE4', $MemoryOpen) $variable_3 = _MemoryRead('0x' & '0EA23614', $MemoryOpen)Is how I do right now and it works, but the hex will I have to change. However with cheat engine I found addresses that looks like this "XXXXXX+3F56BC". When I save them on cheat engine they are the correct address even when I restart the executable. However I don't know how to use it in AutoIT! Can someone please help me! (XXXXX = name of the executable)I tried this example: $variable_1 = _MemoryRead('XXXXXX' & '3F56BC', $MemoryOpen)and: $variable_1 = _MemoryRead('XXXXXX' + '3F56BC', $MemoryOpen)and: $variable_1 = _MemoryRead('0x' & 'XXXXXX+3F56BC', $MemoryOpen) Edited July 31, 2015 by Melba23 Oh yes it is! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 31, 2015 Moderators Share Posted July 31, 2015 mingy,This is the same question you posted here - I see you did not read those rules to which you were linked very carefully - you missed the part that says:"Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above"Do NOT start another thread on this - our patience has limits.M23 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...
Recommended Posts