07-06-2012, 04:18 AM
That code is not working as is. It was just as example. It also has a bug, sorry.
To read 2 bytes from a known address in other process to int variable scp:
Macro Macro1779
To read 2 bytes from a known address in other process to int variable scp:
Macro Macro1779
byte* addressInOtherProcess=+0x0100A5f1 ;;this must be a valid address in other process. In this example it will probably give error because 0x0100A5f1 is probably an invalid address.
int pid = ProcessNameToId("notepad" 0 1)
__ProcessMemory m.Alloc(pid 0 1) ;;just opens process, does not allocate
int scp
m.ReadOther(&scp addressInOtherProcess 2)
err end _error
out scp