xdp22 Posted December 1, 2011 Posted December 1, 2011 Hello, i have problem with memory reading. I have to read long string, i want to made function to do that, this string is just in this offsets : 0x76D928, and next just add +4 like 0x76D928 +4, 0x76D928 + 8 So i need to made function to _MemoryRead(0x76D928 + $x, $proces) until finish all string. I tried to do it like that : Func string() $d = -4 For $i = 0 To 7 $x[$i] = _MemoryRead(0x76D928 + $d, $proces) $d = $d + 4 $z = BinaryToString($x[$i]) $string &= $z Next Return $string EndFunc But doesn't work :/
kylomas Posted December 1, 2011 Posted December 1, 2011 xdp22, Where did "_memoryread" come from? kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
Shaggi Posted December 1, 2011 Posted December 1, 2011 a string with elements sized at four bytes? Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG
FaridAgl Posted December 1, 2011 Posted December 1, 2011 Firstly, you can't use String() as your function name, try _String() instead. If you want to read a string from memory why you are reading that as a 4-byte value? Try this and let me know if it doesn't works. $TotalChars = 7 $String = _MemoryRead(0x76D928, $hProces, "char[" & $TotalChars & "]"). http://faridaghili.ir
kylomas Posted December 2, 2011 Posted December 2, 2011 Allright guys, A search for "memoryread" yields 0 hits, it is NOT in the help file or any AutoIT folder, in fact it does not exist on my harddrive. What is this function? kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
Shaggi Posted December 3, 2011 Posted December 3, 2011 probably from nomadmemory.au3 or w/e it was called - its just a wrapper for readprocessmemory Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG
kylomas Posted December 3, 2011 Posted December 3, 2011 Thanks, shaggi... kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
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