|
You last visited: Today at 15:57
Advertisement
Memory Read
Discussion on Memory Read within the AutoIt forum part of the Coders Den category.
06/18/2010, 20:55
|
#1
|
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
|
Memory Read
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)
GUISetFont(9, 800, 0, "MS Sans Serif")
$Label1 = GUICtrlCreateLabel("Score Addy", 8, 16, 69, 17)
$Label2 = GUICtrlCreateLabel("0x000000", 88, 16, 59, 17)
$Label3 = GUICtrlCreateLabel("Bitte starte Solitär",8, 40, 180, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
call("Game")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func Game()
ProcessWait("sol.exe")
If ProcessExists("sol.exe") Then
GUICtrlSetData($Label3, "Game found")
EndIf
call("Read")
EndFunc
Func Read()
$99 = WinGetProcess("sol.exe")
$100 = _MemoryOpen($99)
$1 = "6E 00 00 00 00 00 00 00 28 00 00 00 03 00 00 00"
$2 = _MemoryRead($1,$100)
Guictrlsetdata($Label2,$2)
EndFunc
THX!
|
|
|
06/18/2010, 20:59
|
#2
|
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
|
PHP Code:
$PID = WingetProcess("Solitär") $Open = _MemoryOpen($PID) $Read = _MemoryRead($Open, 0x000000) GUICtrlSetData($Label2, $Read)
|
|
|
06/18/2010, 21:01
|
#3
|
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
|
...Also erstmal THx aber^^ es funtzt net..
|
|
|
06/18/2010, 21:29
|
#4
|
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
|
Fehler gefunden
PHP Code:
Func Game() ProcessWait("Solitär") If ProcessExists("Solitär") Then GUICtrlSetData($Label3, "Game found") EndIf call("Read") EndFunc
|
|
|
06/18/2010, 21:36
|
#5
|
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
|
...THX aber es geht net >.< Hier noch mal der code
#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)
GUISetFont(9, 800, 0, "MS Sans Serif")
$Label1 = GUICtrlCreateLabel("Score Addy", 8, 16, 69, 17)
$Label2 = GUICtrlCreateLabel("0x000000", 88, 16, 59, 17)
$Label3 = GUICtrlCreateLabel("Bitte starte Solitär",8, 40, 180, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
call("Game")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func Game()
ProcessWait("sol.exe")
If ProcessExists("sol.exe") Then
GUICtrlSetData($Label3, "Game found") ;Ich hab XP
EndIf
call("Read")
EndFunc
;$1 = "00 00 00 00 00 00 00 00 28 00 00 00 03 00 00 00"
func Read()
$base = 0x000A0000
$PID = WingetProcess("sol.exe")
$Open = _MemoryOpen($PID)
$Read = _MemoryRead($Open, 0x00000000)
GUICtrlSetData($Label2, $Read)
EndFunc
|
|
|
06/18/2010, 22:08
|
#6
|
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
|
aus
machen
und natürlich die Adresse (0x000000) zu deiner ändern
|
|
|
06/18/2010, 22:16
|
#7
|
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
|
nochmals thx aber in win Xp heist das game sol.exe und nicht Solitär.exe und 2. welche ist das jetzt??
1. 00 00 00 00 00 00 00 00 28 00 00 00 03 00 00 00
2. 0x6a70
3. 0x000000
|
|
|
06/18/2010, 22:19
|
#8
|
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
|
es wird aber nicht der Prozess sondern der Fenstertitel verlangt. Und der ist nunmal "Solitär".
Adressen gar keine davon. Das erste ist eine Hex Zahl, das zweite sieht mir nach einem Pointer aus und das letzte ist nur ein Platzhalter.
|
|
|
06/18/2010, 22:22
|
#9
|
elite*gold: 0
Join Date: May 2009
Posts: 634
Received Thanks: 794
|
...o.O naja das war eig der sinn... Die Addy(0x00AAB80)aus der Hex Memory herraus zu lesen und bei 0x0000 hin zu schreiben .
|
|
|
|
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 and add value
06/20/2010 - AutoIt - 4 Replies
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
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
|
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 +2. The time now is 15:57.
|
|