Gooby Posted March 6, 2018 Posted March 6, 2018 Hello! Im new to autoit memory, using NomadMemory.au3, the problem is it doesn't read from addresses like "3CCC6B63640", the value im getting is '0'. But, it works for adresses with less strings like "076BB5FC" or similar as shown on screens. Any idea what I'm doing wrong? I would like to use it with pointers later on, but need to get correct result first :/ Screenshoots and scripts: Screenshots of cheat engine + script: My script: #include <NomadMemory.au3> #include <WindowsConstants.au3> #include <MsgBoxConstants.au3> #include <String.au3> test() Func test() GUISetState(@SW_HIDE) $PID = "6644" $MemoryOpen = _MemoryOpen($PID) Sleep(500) $a = _MemoryRead ('0x' & '00050000', $MemoryOpen, 'double') $b = _MemoryRead ('0x' & '3CCC6B63640', $MemoryOpen, 'double') ConsoleWrite('a = ' & $a & @CRLF) ConsoleWrite('b = ' & $b & @CRLF) Exit EndFunc _MemoryRead: Func _MemoryRead($iv_Address, $ah_Handle, $sv_Type = 'dword') If Not IsArray($ah_Handle) Then SetError(1) Return 0 EndIf Local $v_Buffer = DllStructCreate($sv_Type) If @Error Then SetError(@Error + 1) Return 0 EndIf DllCall($ah_Handle[0], 'int', 'ReadProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '') If Not @Error Then Local $v_Value = DllStructGetData($v_Buffer, 1) Return $v_Value Else SetError(6) Return 0 EndIf EndFunc
Earthshine Posted March 6, 2018 Posted March 6, 2018 did you read the forum rules? My resources are limited. You must ask the right questions
Gooby Posted March 6, 2018 Author Posted March 6, 2018 16 minutes ago, Earthshine said: did you read the forum rules? Yes, so what?
Earthshine Posted March 6, 2018 Posted March 6, 2018 the part about game automation and stuff? bots? yeah? My resources are limited. You must ask the right questions
Gooby Posted March 6, 2018 Author Posted March 6, 2018 Yes, also I'm reading the forum for years from time to time, just my first post. Still, decided to ask more experienced users for help, as I can't find solution myself. If you know the answer, I would be happy to get any tips, so I can get into memory, pointers and stuff deeper.
Earthshine Posted March 6, 2018 Posted March 6, 2018 if you want to get into memory and pointers then C and C++ are your tools. good luck. Gooby 1 My resources are limited. You must ask the right questions
Moderators Melba23 Posted March 6, 2018 Moderators Posted March 6, 2018 Earthshine, and several other rather over-eager wannabee Mods, Stop fishing for reasons to get the thread closed. Unless there is prima facie evidence of gaming we prefer to give the benefit of the doubt. Just do not respond - or report the thread as was done in this case. 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
Gooby Posted March 6, 2018 Author Posted March 6, 2018 Thanks, I will study that if I find more time to get familiar with it. Back to the question, can I solve the problem using autoit and NomadMemory // other udfs? A warm hug for any tips
Earthshine Posted March 6, 2018 Posted March 6, 2018 (edited) so it's cool? hint, use google or your favorite search engine type in: autoit memory udf click on first link. i think that might help you, or just click link below and read through Edited March 6, 2018 by Earthshine My resources are limited. You must ask the right questions
Earthshine Posted March 6, 2018 Posted March 6, 2018 C Programming Pointers Gooby 1 My resources are limited. You must ask the right questions
Gooby Posted March 6, 2018 Author Posted March 6, 2018 Thanks, I will use Memory udf and try to get the values
Bert Posted March 6, 2018 Posted March 6, 2018 Seeing how you are trying to automate google chrome, why not just use this: Far simpler The Vollatran project My blog: http://www.vollysinterestingshit.com/
Gooby Posted March 15, 2018 Author Posted March 15, 2018 So, I started writing in c++ and met the same problem. It is compiler, compiling for 32bits, not 64, that's why I couldn't get values from that adressess, downloaded one for x64 and its all okay. Will be the same for autoit, if it uses 32 bits - you may select an option during installation between 32/64, not sure if NomadMemory supports x64. C seems more friendly for my needs, gonna stick with it for my project, thanks for the tips! Earthshine 1
Earthshine Posted March 15, 2018 Posted March 15, 2018 (edited) Glad to be of any service! C is AWESOME mate. Oh, I've loved her so long (a Neil Young Song but I feel that way about it) Edited March 15, 2018 by Earthshine My resources are limited. You must ask the right questions
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