|
You last visited: Today at 06:26
Advertisement
[Memory read] Baseadresse mit Script rausfinden?
Discussion on [Memory read] Baseadresse mit Script rausfinden? within the AutoIt forum part of the Coders Den category.
03/18/2012, 00:17
|
#31
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Wo genau muss ich dann @error einbinden?
|
|
|
03/18/2012, 09:38
|
#32
|
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
|
PHP Code:
Func _MemoryModuleGetBaseAddress($iPID, $sModule)
If Not ProcessExists($iPID) Then Return SetError(1, 0, 0)
If Not IsString($sModule) Then Return SetError(2, 0, 0)
Local $PSAPI = DllOpen("psapi.dll")
;Get Process Handle
Local $hProcess
Local $PERMISSION = BitOR(0x0002, 0x0400, 0x0008, 0x0010, 0x0020) ; CREATE_THREAD, QUERY_INFORMATION, VM_OPERATION, VM_READ, VM_WRITE
If $iPID > 0 Then
Local $hProcess = DllCall("kernel32.dll", "ptr", "OpenProcess", "dword", $PERMISSION, "int", 0, "dword", $iPID)
MsgBox(0, "openprocess", @error)
If $hProcess[0] Then
$hProcess = $hProcess[0]
EndIf
EndIf
;EnumProcessModules
Local $Modules = DllStructCreate("ptr[1024]")
Local $aCall = DllCall($PSAPI, "int", "EnumProcessModules", "ptr", $hProcess, "ptr", DllStructGetPtr($Modules), "dword", DllStructGetSize($Modules), "dword*", 0)
If $aCall[4] > 0 Then
Local $iModnum = $aCall[4] / 4
Local $aTemp
$sModules = ""
For $i = 1 To $iModnum
$aTemp = DllCall($PSAPI, "dword", "GetModuleBaseNameW", "ptr", $hProcess, "ptr", Ptr(DllStructGetData($Modules, 1, $i)), "wstr", "", "dword", 260)
$sModules &= $aTemp[3] & @crlf
If $aTemp[3] = $sModule Then
DllClose($PSAPI)
Return Ptr(DllStructGetData($Modules, 1, $i))
EndIf
Next
MsgBox(0, "modules", $sModules)
EndIf
DllClose($PSAPI)
Return SetError(-1, 0, 0)
EndFunc
|
|
|
03/18/2012, 11:41
|
#33
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
|
|
|
03/18/2012, 12:16
|
#34
|
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
|
Wie du an der zweiten Meldung erkennen kannst ist das Modul "Game.dll" überhaupt nicht geladen.
Welchen Prozess wählst du im Process-Picker bei Cheat Engine aus?
|
|
|
03/18/2012, 12:36
|
#35
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Ich wähle den Prozess "aion.bin" aus. Und wenn ich bei Cheat engine dann als Adresse "game.dll" eingebe, bekomme ich auch den Wert.
|
|
|
03/18/2012, 15:30
|
#36
|
elite*gold: 0
Join Date: May 2009
Posts: 191
Received Thanks: 19
|
Ich hab das selbe Problem ... Ich bekomme es einfach nicht hin. Mein Script sieht so ähnlich aus wie deins
Code:
$Adresse = 0x2CA00000 + 0x0009C01C
Dim $Offset[2] = [0, 0x4]
$Open = _MemoryOpen(ProcessExists("aion.bin"))
If Not @error Then
$Read = _MemoryRead($Adresse, $Open)
$Value = _MemoryRead($Read + $Offset[1], $Open)
Ich muss nämlich auch immer den Wert mit Cheat engine suchen...:/
Tja dann war's das wohl mit der Bot Programmierung, wenn keiner helfen kann.
|
|
|
03/28/2012, 15:38
|
#37
|
elite*gold: 0
Join Date: May 2009
Posts: 191
Received Thanks: 19
|
Weiß denn hier auch keiner weiter?
|
|
|
03/31/2012, 12:39
|
#38
|
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
|
Problem gelöst, Autoit Script musste zu x86 compiled werden, damit die "Game.dll" gefunden werden konnte.
|
|
|
 |
|
Similar Threads
|
[VB.NET] Read memory help
03/25/2011 - .NET Languages - 7 Replies
Ok so im looking for some one that can help me to read a procces memory from a game and show it on a label in vb.net so if the HP changes then the label will change.
Please help me here cant find anything on google, also how to send keys to the game
|
Suche Script für Memory Read
03/04/2011 - AutoIt - 1 Replies
Kann mir einer ein Script geben ohne GUI, mit NoMadMemory include wo ich die Read Memory Funktion nutzen kann?
Würde mich auch über ein VB Script freuen!
Möchte für 4Story Global ein Log Buch machen!
|
VB.NET Read Memory
11/08/2010 - .NET Languages - 1 Replies
jo Hi,
Ich suche eine ReadMemory Function. Hat einer eine da?
Danke
|
[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>
|
All times are GMT +1. The time now is 06:28.
|
|