Jump to content

Recommended Posts

Posted

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 :/

Posted

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 & "]").
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...