|
You last visited: Today at 03:57
Advertisement
Memory read and add value
Discussion on Memory read and add value within the AutoIt forum part of the Coders Den category.
06/18/2010, 21:07
|
#1
|
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", 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)
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
|
#2
|
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
|
Bump After 15 minutes???
#reportet
|
|
|
06/19/2010, 15:15
|
#3
|
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.
|
|
|
06/20/2010, 02:00
|
#4
|
elite*gold: 0
Join Date: May 2009
Posts: 1,050
Received Thanks: 472
|
Quote:
Originally Posted by Adroxxx
Trippeposts / Doubleposts / Bumping is not allowed.
Next time you'll get a warning for it.
|
Sorry
|
|
|
06/20/2010, 02:21
|
#5
|
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
- byte - 1 byte
- word - 2 byte
- dword - 4 byte
- qword - 8 byte
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:
PHP Code:
#include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <NomadMemory.au3> #RequireAdmin ;For Vista and Se7en user!
$open = _MemoryOpen(ProcessExists("YOURPROCESS.exe"))
$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 $1 = _MemoryRead($Adress1,$open) $2 = _MemoryRead($Adress2,$open)
GuiCtrlSetData($Progress1,$1) GuiCtrlSetData($Progress2,$2)
EndSwitch WEnd
The source should work. I didn't check it
|
|
|
 |
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.
|
|