Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 06:26

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

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.

Reply
 
Old 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?
Masterscripter is offline  
Old 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($iPIDThen Return SetError(100)

    If 
Not IsString($sModuleThen Return SetError(200)

    
Local   $PSAPI DllOpen("psapi.dll")

    ;
Get Process Handle
    Local   $hProcess
    Local   $PERMISSION 
BitOR(0x00020x04000x00080x00100x0020) ; CREATE_THREADQUERY_INFORMATIONVM_OPERATIONVM_READVM_WRITE

    
If $iPID 0 Then
        Local $hProcess 
DllCall("kernel32.dll""ptr""OpenProcess""dword"$PERMISSION"int"0"dword"$iPID)
        
MsgBox(0"openprocess", @error)
        If 
$hProcess[0Then
            $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($Modules1$i)), "wstr""""dword"260)
            
$sModules &= $aTemp[3] &  @crlf
            
If $aTemp[3] = $sModule Then
                DllClose
($PSAPI)
                Return 
Ptr(DllStructGetData($Modules1$i))
            EndIf
        
Next
        MsgBox
(0"modules"$sModules)
    EndIf

    
DllClose($PSAPI)
    Return 
SetError(-100)

EndFunc 
jacky919 is offline  
Old 03/18/2012, 11:41   #33
 
elite*gold: 0
Join Date: Oct 2010
Posts: 167
Received Thanks: 24
Also die drei Meldungen kommen genau in der Reihenfolge, in der ich sie hier poste:





Masterscripter is offline  
Old 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?
jacky919 is offline  
Old 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.
Masterscripter is offline  
Old 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.
Skatefreaky is offline  
Old 03/28/2012, 15:38   #37
 
elite*gold: 0
Join Date: May 2009
Posts: 191
Received Thanks: 19
Weiß denn hier auch keiner weiter?
Skatefreaky is offline  
Old 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.
Masterscripter is offline  
Reply


Similar Threads 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.


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.