Memory read and add value

06/18/2010 21:07 ax5#1
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
06/19/2010 13:43 | Moep |#2
Bump After 15 minutes???

#reportet
06/19/2010 15:15 Adroxxx#3
Trippeposts / Doubleposts / Bumping is not allowed.
Next time you'll get a warning for it.
06/20/2010 02:00 ax5#4
Quote:
Originally Posted by Adroxxx View Post
Trippeposts / Doubleposts / Bumping is not allowed.
Next time you'll get a warning for it.
Sorry
06/20/2010 02:21 Imaginär#5
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 :p