Jump to content

help with memory ... i can read it but with a seperate program


Recommended Posts

ok so... i have a program that reads my hp value from the game Archlord, but the problem is i cannot find a way to retrieve that value from the memory reader and use it in my AutoIt script...

-i want to make a variable $my_hp

-take the value from the memory reader

-assign it to $my_hp

here's a picture of the memory addresses AND part of the hp bar from the game

MY_HPS.bmp

Link to comment
Share on other sites

ok so... i have a program that reads my hp value from the game Archlord, but the problem is i cannot find a way to retrieve that value from the memory reader and use it in my AutoIt script...

-i want to make a variable $my_hp

-take the value from the memory reader

-assign it to $my_hp

here's a picture of the memory addresses AND part of the hp bar from the game

Wewlcome to the forums :)

The memory reader is, presumably, telling you where in memory the value is stored.

0EFD53B8 is the start of one memory location, and 4 bytes are used

0F0B7A70 is another memory location, again 4 bytes used. Perhaps the value is stored twice.

I don't know what hp means or what the significance of 1003 is, but I imagine you do.

I guess these values are integers which use 4 bytes.

What you have to do is not get the values form the memory reader but use the information the memory reader gave you to read the values from the memory used by the game.

I recommend NomadMemory.au3 for this sort of thing.

Nomad Memory

Assuming you use that then you need to do this sort of thing

$hMem = _MemoryOpen($GamePID);you need to get the PID of your game first - look up ProcessList

$my_hp = _MemoryRead("0x0EFD53B8",$hMem,"int")

.

.

and when you have finished

_MemoryClose($hMem)

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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