Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 03:57

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

Advertisement



Memory read and add value

Discussion on Memory read and add value within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
Im trying to read values with HexCode but i have no ide to do this. i want the porgress bar and the labels to show the curent value of the Adresses

PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>


$Adress1 0x000008DC
$Adress2 
0x000009CF

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("TEST"391146)
$Progress1 GUICtrlCreateProgress(562426525)
$Progress2 GUICtrlCreateProgress(566426525)
$Label1 GUICtrlCreateLabel("HP"16243617)
$Label2 GUICtrlCreateLabel("Chi"8643617)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###




While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

            case 
$Progress1
                
While 1
                _MemoryRead
($Adress1,$Adress1)
            
WEnd

            
case $Progress2
                
While 1
                _MemoryRead
($Adress2,$Adress2)
            
WEnd

    
EndSwitch
WEnd 
Ok this is the new code but the Haxecode changes when the numbers changed so what should i do ?

Quote:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>


$Adress1 = 0x000008DC
$Adress2 = 0x000009CF

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("TEST", 391, 146)
$Progress1 = GUICtrlCreateProgress(56, 24, 265, 25)
$Progress2 = GUICtrlCreateProgress(56, 64, 265, 25)
$Label1 = GUICtrlCreateLabel("HP", 16, 24, 36, 17)
$Label2 = GUICtrlCreateLabel("Chi", 8, 64, 36, 17)
$Button1 = GUICtrlCreateButton("Button1", 270, 90, 50, 50, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit


Case $Button1

GuiCtrlSetData($Progress1,$Adress1)
GuiCtrlSetData($Progress2,$Adress2)

EndSwitch
WEnd
~ BUMP

Now it works but the hexcode was only for that value of the HP/chi so it will not show the hp/chi value when it changes
ax5 is offline  
Old 06/19/2010, 13:43   #2
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Bump After 15 minutes???

#reportet
| Moep | is offline  
Old 06/19/2010, 15:15   #3

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,324
Trippeposts / Doubleposts / Bumping is not allowed.
Next time you'll get a warning for it.
Adroxxx is offline  
Old 06/20/2010, 02:00   #4
 
ax5's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
Quote:
Originally Posted by Adroxxx View Post
Trippeposts / Doubleposts / Bumping is not allowed.
Next time you'll get a warning for it.
Sorry
ax5 is offline  
Old 06/20/2010, 02:21   #5
 
Imaginär's Avatar
 
elite*gold: 255
Join Date: Nov 2009
Posts: 2,900
Received Thanks: 1,408
I think you are working wrong.

First you must open a process..

Quote:
$open = _MemoryOpen(ProcessExists("YOURPROCESS.exe"))
and you Write Values in the Adresses with this Code:

Quote:
_MemoryWrite(YOURADRESS, $open, "YOURVALUE",TYPEOFADRESS)
and your read values with this code:

Quote:
_MemoryRead($Adress1,$open)
Here is the explanation for _MemoryWrite:
Youradess = Your $Adress1 or $Adress2
$open = Your process, which you have opened
"yourvalue" = the value
typeofadress = usualy it's "dword", but there are also other

This is a very short explanation, but i hope you understand it :3
You can google for tutorials. There are many good tutorials

Here your Code with my modifications:


The source should work. I didn't check it
Imaginär is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[VB]Write Memory bzw Read Memory
06/26/2010 - .NET Languages - 8 Replies
Hi Ich hab das TuT von *Guidman* benütz um einen hack zu machen. So aber nun hab ihc ein paar fragen könnte man memory teil kürzer machen und am besten wie kann man das selber machen weil ich will nihct immer C&P machen. Und zu Read Memory kann man das auch machen das ein Label immer die Bestimmte Ahnzahl angiebt von dem Pointer?.(Wenn das Read Memory ist ?) Bitte helf mir Danke
Memory Read
06/18/2010 - AutoIt - 8 Replies
Hey E*PvP, ich hab ein Problem... Ich denke das die memory richtig ist , aber er gibt mir immer nur 0 aus.... Egal ob ich 0, 1, 1000 oder 9million punkte hab ... #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <nomadmemory.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Sol loger", 201, 64, 324, 280)
Memory Read
06/18/2010 - AutoIt - 0 Replies
wtf?? pls delete
Memory Read u.ä.
02/16/2010 - Metin2 - 2 Replies
Moin, ich wollte fragen ob es für Metin2 auch eine UDF für autoit (mit memory read) gibt. Also mir geht es eigentlich nur darum, dass ich einen Bot im HIntergrund laufen lassen kann und es möglich ist zu überprüfen wo der nächste gegner ist, diesen anzuklicken und wie viel hp/mp etc man noch hat. -->Suche etwas "exateres" als z.B. PixelSearch/MousClick und etwas womit ich den Bot im Hintergrund laufen lassen kann. Könnte mir jemand dazu ein Beispiel Script (bezogen auf Metin2) oder...
Read memory
06/27/2008 - Diablo 2 - 7 Replies
Hallo, will mit readprocessmemory nen externes programm machen was mir energie usw protokoliert. Das problem ist nur, das D2 die adressen bei jedem neuen spiel immer verändert. Wie kann ich das umgehen? Brauch ich glaube nen pointer auf die richtige adresse, aber wie? Hat da jemand ahnung???



All times are GMT +1. The time now is 03:58.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.