AutoIt Forums: Memory write to a pointer + offset - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Memory write to a pointer + offset

#1 User is offline   pokemaster 

  • Newbie
  • Group: Members
  • Posts: 4
  • Joined: 09-August 09

Posted 07 November 2009 - 12:10 PM

Using nomadmemory and reading a pointer by

$result = _MemoryPointerRead($address, $handle, $offset)

Works fine. However, I cannot write to a pointer. I have only succeeded with writing to an address, but can't get it to work with a pointer.

_MemoryWrite($addressitpointsto,$handle, $somevalue)

Is it possible to include the offset in there somewhere? I tried after $somevalue, but it returned an error.

This post has been edited by pokemaster: 07 November 2009 - 12:11 PM


#2 User is online   trancexx 

  • somewhere beyond the moon
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 2,621
  • Joined: 18-March 08
  • Gender:Not Telling
  • Location:Split, HR

Posted 08 November 2009 - 09:20 AM

How very interesting choice of used terms.

#3 User is offline   BennyBB 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 24
  • Joined: 25-October 09

Posted 08 November 2009 - 03:00 PM

Maybe you could give us some parts of your code, so that we exactly know what you want, because there are no relationships between your two codeparts O.o

I think you should get the adress, the pointer points to, then sum the offset (in HEX !!) and then you have to rewrite this adress
for example

$adress1 = _MemoryRead($pointer,$process)
$adress = Hex($adress1+$offset)
_MemoryWrite($adress,.......)

That's the way I do it and it works fine

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users