Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 13:39

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[AutoIt]Reading Value From Memory

Discussion on [AutoIt]Reading Value From Memory within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
eienheart's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 46
Received Thanks: 0
[AutoIt]Reading Value From Memory

Hi, I would like some help on a simple bot I'm making.
Code:
#cs ---------------------------------------------------------------------------- 
   AutoIt Version: 1.5.0.0 
   Author: eienheart
#ce ---------------------------------------------------------------------------- 
#include <nomadmemory.au3> 

$PID = WinGetProcess("Gamename") 
WinActivate("Gamename") ;bring the game to active window at start 
auto() 
func auto() 
while WinActive("Gamename") ;ends script when window isn't active 

   Global $HPROCESS = _MEMORYOPEN($PID) 
   Global $StaticOffset = 0x008256FC 
   Global $baseaddress = _MemoryModuleGetBaseAddress($PID, "game.exe");static address that accesses my pointer - via CE 
   Global $finalADDR = "0x" & Hex($baseaddress + $StaticOffset) 
   Global $offset1 = 0xxxx ;offset for current hp 
   Global $offset2 = 0xxxx ;offset for max hp 
   Global $offset3 = 0xxxx ;offset for current mp 
   Global $offset4 = 0xxxx ;offset for max mp 

   $CurrentHP = _MemoryRead($finalADDR+$offset1, $HPROCESS) 
   $MaxHP = _MemoryRead($finalADDR + $offset2, $HPROCESS) 
   $CurrentMP = _MemoryRead($finalADDR+$offset3, $HPROCESS) 
   $MaxMP = _MemoryRead($finalADDR+$offset4, $HPROCESS) 
   msgbox(0,"ab",$CurrentHP) 

   [I]////////////////////////////other codes here[/I]
WEnd 
_MemoryClose($PID) 
EndFunc
It doesn't output(through messagebox) my desired value(HP).
Am I missing something here?
eienheart is offline  
Reply


Similar Threads Similar Threads
[Video-Tutorial] Reading SRO Memory (C#, C++, Autoit)
06/13/2017 - SRO Coding Corner - 17 Replies
YouTube - Memory Reading Tutorial using C++, C# & Autoit Download examples: http://frayzer.de/index.php?p=download
AUTOIT bot! Need Help with Memory Reading!
08/10/2010 - AutoIt - 2 Replies
Well, I am working on a bot for a Pokemon game but as it seems I cant get it to change the Memory Value from the Address I bot. If I could get it to change it would help me so much. Can anybody point out where I am wrong? What I need help is with this Function: _MemoryWrite I dont exactly know how to use this but I used it like this: _MemoryWrite(0x00570D38, $memory,0) ;Includes #include <ButtonConstants.au3> #include <ComboConstants.au3>
VB 08 Memory Reading
07/06/2010 - .NET Languages - 2 Replies
Hallo, Ich wollte in einem Spiel die HP auslesen lasse, dabei bin ich aber auf ein Problem gestoßen. Das Problem ist, das die Pointer Adresse so aussieht : "Hero.exe+".. http://www.imagebanana.com/img/o0org9ha/Problem.p ng Kann mir vllt. jmd sagen, wei ich das hinbekomme ?
Memory reading help...
02/10/2007 - Conquer Online 2 - 1 Replies
Hi, I need to read the amount of arrows on an archer (0-500). I have the pointer and offset, and i can get the right number in cheat engine, however whenever i try to read it from autohotkey i always get 0. Don't know why. I've always read 4 byte data before so i don't really know if i have the right code for 2 byte data. Here's the autohotkey code ExtInt&#40;ByRef pSource, pOffset = 0, pIsSigned = false, pSize = 4&#41;; From AutoHotKey Help { Loop %pSize% result += *&#40;&pSource +...
Help with Reading Memory
01/28/2007 - Conquer Online 2 - 1 Replies
Hello, I've been programming my own Program, but im now busy with the hardest stuff, and i'm writing in VB.NET 2005 who can help me with a simple Example to read a memory adress and this convert to an TEXT label? the basic is:



All times are GMT +2. The time now is 13:39.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.