Help - Search - Members - Calendar
Full Version: ReadProcessMemory ? Need help plz
AC Tools Everything Macro > General Discussion > C++/Delphi/VB Development
Michel
Hello

i'm new user of AC Tool since 1 week

i'm playing to make many macros for many games as MMORPG

i readed on forum people talking about ReadProcessMemory
This function will perhap can help me to make betters macros for games

Actually i would like optimise a macro i did
Macro checking the life bar of my player with "IsRed"

CODE
IsRed 200, 10
    My player have enought life
Else
    Burn HP Pot
End

But i would like now that AC Tool read in the game my life with numeric, it's better for precision

Exemple :

CODE
Readlife $life = adress memory of game
If $life < 30     // if my life under 30 hp
    Burn HP Pot
End

I saw in "C++/Delphi/VB Development" Forum these links :

ReadProcessMemory

Talking about scanners memory, very good site !

and this link :

ReadProcessMemory for C++

Talking about ReadProcessMemory

But how can i use this command ? my AC Tool dont know the command "ReadMemoryProcess"
I looked the "readme.txt" wink.gif but nothing in

I need add on ? i saw people talking about API command, how i use that ?
I've only AC Tool installed on my computer

Can help me plz ?
bubbagump
I believe in AC Tools the syntax to read a value from Memory is as follows (AC Tools/gaming computer is borked atm, and not gonna dl it on this wink.gif)

ReadMemory Constant = Address

So...

ReadMemory HP = $HPAddr

Make sure your adress includes any leading 0's or trailing (trailing is obvious, not having the leading numbers threw me off a couple times) otherwise it will return 0, IIRC.
Michel
Hello

AC Tool Help

Description
The ReadMemory command reads a DWord from a processes memory. This statement should only be used if you know exactly what you are doing.

Parameters
The constant to load the DWord into
The hexidecimal memory address to read

Example

CODE

Constants
    Const1=NoValue
end

ReadMemory Const1 = 005D7718



But first who can say to me how many octects have a DWord ?
Const1 is a value in Decimal or Hexadecimal
The function ReadMemory read how many octect in memory ? only 1 or more ?

because the life in my game use 4 Bytes
Do i need use 4* ReadMemory as :

CODE

ReadMemory Const1 = 035DB0E9
ReadMemory Const2 = 035DB0EA
ReadMemory Const3 = 035DB0EB
ReadMemory Const4 = 035DB0EC

SetConst $Constant = $Const1 + $Const2 + $Const3 + $Const4

or

SetConst $Constant = $Const4 + $Const3 + $Const2 + $Const1



As you can see i really duno how work this function, i really need some help

And for finish i dont think that this function can work because, i can't definit before use ReadMemory a function as OpenProcessus for force ReadMemory to read in the processus

It's why i asked how use ReadMemoryProcess

Please Help me
The WABBIT
Michel,

First of all, there is not ReadProcessMemory function/command in AC Tool.

The reason you had seen threads about the use of such function/command. Is because it is a function used in C++/Delphi/VB developement.

The only way to read any memory location in a game, from with in a AC Tool macro/script, is with the ReadMemory command.



You will find more information, including scripts that used it, in the Earth and Beyond forum. Read the following threads:

Memory 4 Dummies

and

Memory 4 Dummies, 2nd Ed.

and

sb reset angle hack updated

They have information on how to find the memory locations. And how to use them, although it is for E&B. The process will be the same for all other games.

The last thread has a macro/script called memkiller.mac. This macro was used to help the E&B'ers to read the character standing angle. When they enter a starbase, or reset the character position in a starbase. You could use this macro to help you with your attempts to read the memory location in the game you are playing in.



As for the size of the DWord, at the moment I can not seem to remember it. And I do not wish to make a guess on it's size. My best advise is for you to do a search on the net. As DWord type is a standard and you should be able to fined it's size is.

But, if you do not want to do that, then I would suggest that you experiement. To see what you end up with in your constant.
Michel
Hello The WABBIT

i just read all the posts about Memory 4 Dummies

and i do 5 or 6 experiments with readmemory and setmemory

now i know how work theses functions, it's too cool, thx very much, i know now how read my life in game smile.gif

ReadMemory and SetMemory work with SetActiveWindow

For DWord it's a 32 bit value, and the value after ReadMemory is a decimal value smile.gif so he read 4 Bytes

Thx again smile.gif
The WABBIT
I'm glad those topics were of help to you. And I'm glad your macro/script is now getting somewhere.

Good luck

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.