ich hätte da mal ne Frage nämlich ich möchte das Autoit Adressen sucht , mit diesen Werten:
Type:long
Array:6A 01 8B 8D 44 FF FF FF 83
Value:2374697322
Scan Start:0x00400000
Scan End:0x00900000
ich suche und suche finde aber nichts, wäre echt nett wen ihr mir Helft.
Script:
Code:
;==================================================================================
; Function: _MemoryScan($ah_Handle, $pattern [, $after[, $iv_addrStart, [$iv_addrEnd]]])
; Description: Finds the address of the first occurance of a pattern in a process.
; Parameter(s): $ah_Handle - An array containing the Dll handle and the handle
; of the open process as returned by _MemoryOpen().
; $pattern - The pattern you want to find. Provide the pattern
; as a String of hex values. You may use the '.' as wildcard.
; Any other character as '0123456789ABCDEFabcdef.' is ignored.
; Example: "55 8B .. 83"
; $after - (optional) Set to FALSE by default.
; If set to TRUE, the method will return the address
; after the pattern, else the method returns the address
; of the pattern itself.
; $iv_addrStart - (optional) Set to 0x00400000 by default.
; This is the address where the method begins to scan
; for the pattern. It must be in hex format (0x00000000).
; $iv_addrEnd - (optional) Set to 0X00FFFFFF by default.
; This is the address where the method stops to scan
; for the pattern. It must be in hex format (0x00000000).
; Requirement(s): None.
; Return Value(s): On Success - Returns the address of the first occurance of the pattern
; ($after = FALSE) or the address after the first occurance
; of the pattern ($after = TRUE). The address is in
; hexadecimal format.
; On Failure - Returns -1
; @Error - 0 = No error.
; 1 = Invalid $ah_Handle.
; 2 = Invalid $pattern.
; Author(s): Luzifer42
; Note(s): The default scan range will be completed in less than one second.
;==================================================================================
#RequireAdmin
;~ #include <NomadMemory.au3>
#include <Array.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <SkinCrafterUDF.au3>
#include "KDMemory.au3"
_LoadSkinCrafter("Skindll.dll")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Adress Searcher", 684, 508, 531, 279)
_InitializeSkinCrafter($Form1,"macos.skf")
$Button1 = GUICtrlCreateButton("Start", 192, 208, 281, 57)
$Button2 = GUICtrlCreateButton("State:", 192, 272, 281, 49)
GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox(48,"","Warte auf S4 League")
ProcessWait("S4Client.exe")
Sleep(1500)
_ProcessSuspend("S4Client.exe")
GUICtrlSetData($Button2,"Searching")
;~ $array = _MemorySearch(ProcessExists("S4Client.exe"), "6A 01 8B 8D 44 FF FF FF 83", 0x00400000, 0x00900000)
$Adressen=_MemoryScan(_KDMemory_OpenProcess(ProcessExists("S4Client.exe")),"6A 01 8B 8D 44 FF FF FF 83")
_ArrayDisplay($Adressen)
EndSwitch
WEnd
#cs
Func _MemorySearch($pPid, $pWert, $pAnfang, $pEnde)
Local $vCall[99]
If Not ProcessExists($pPid) Then Return SetError(1, "", -1)
If IsFloat($pWert) Then Return SetError(2, "", -1)
If $pAnfang > $pEnde Then Return SetError(2, "", -1)
Local $vAnfang = $pAnfang, $vStruct, $vCall[2], $vIndex
Dim $vArray[1] = [0]
Do
$vStruct = DllStructCreate("DWORD Adress[255];int Index")
$vCall = DllCall(@ScriptDir & "\MemorySearch.dll", "int:cdecl", "MemorySearch", "int", $pPid, "DWORD", $pWert, "int", $vAnfang, "int", $pEnde, "int", DllStructGetPtr($vStruct))
$vIndex = DllStructGetData($vStruct, "Index")
For $i = 0 To $vIndex - 1
ReDim $vArray[UBound($vArray) + 1]
$vArray[UBound($vArray) - 1] = DllStructGetData($vStruct, "Adress", $i + 1)
$vArray[0] += 1
Next
If UBound($vArray) > 1 Then $vAnfang = $vArray[UBound($vArray) - 1] + 1
FileWriteLine("test.txt",$vArray)
Until $vCall=1
Return $vArray
EndFunc ;==>_MemorySearch
#ce
Func _ProcessSuspend($process)
$processid = ProcessExists($process)
If $processid Then
$ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processid)
$i_sucess = DllCall("ntdll.dll","int","NtSuspendProcess","int",$ai_Handle[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $ai_Handle)
If IsArray($i_sucess) Then
Return 1
Else
SetError(1)
Return 0
Endif
Else
SetError(2)
Return 0
Endif
EndFunc
Func _ProcessResume($process)
$processid = ProcessExists($process)
If $processid Then
$ai_Handle = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processid)
$i_sucess = DllCall("ntdll.dll","int","NtResumeProcess","int",$ai_Handle[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $ai_Handle)
If IsArray($i_sucess) Then
Return 1
Else
SetError(1)
Return 0
Endif
Else
SetError(2)
Return 0
Endif
EndFunc
Func _MemoryScan($ah_Handle, $pattern, $after=false, $iv_addrStart=0x00400000, $iv_addrEnd=0X00FFFFFF, $step=51200)
$lpBaseAddress = _KDMemory_GetModuleBaseAddress($ah_Handle,"S4Client.exe")
If Not IsArray($ah_Handle) Then
SetError(1)
Return -1
EndIf
$pattern=StringRegExpReplace($pattern, "[^0123456789ABCDEFabcdef.]", "")
IF StringLen($pattern)=0 Then
SetError(2)
Return -2
EndIf
For $addr=$iv_addrStart To $iv_addrEnd Step $step-(StringLen($pattern)/2)
StringRegExp(_KDMemory_ReadProcessMemory($ah_Handle, $lpBaseAddress, "byte[" & $step & "]"), $pattern, 1, 2)
If Not @Error Then
If $after Then
return StringFormat("0x%.8X", $addr+((@Extended-2)/2))
Else
return StringFormat("0x%.8X", $addr+((@Extended-StringLen($pattern)-2)/2))
EndIf
EndIf
Next
Return -3
EndFunc
Ich kenne diese UDF nicht aber du würdest sicherlich mehr Hilfe bekommen wenn du einen treffenderen Topicnamen hättest, du bist in der AutoIt Section d.h. du kriegst Hilfe.
Gib deinen Fehler an, wo du vermutest das es da sein könnte.
Beispielsweise: _MemoryScan - findet nichts
[Hilfe]Wie man Out of Memory behebt![Hilfe] 08/03/2012 - Minecraft - 2 Replies Hallo,
da viele Leute nicht wissen, was sie bei einem Out of Memory Fehler zu tun haben, ist das hier jetzt eine Erklärung, wie man diesen Fehler behebt.
Lösung mit der ihr keine Texturepacks installieren könnt:
Zuerst müsst ihr feststellen, ob ihr ein Texturepack installiert habt! Habt ihr eins installiert, dann ist es der Grund für eure Abstürze. Denn bessere Texturen verbrauchen mehr Arbeitsspeicher. Also am besten haut ihr erstmal wieder Default rein, damit Minecraft wieder läuft!
Hilfe bei Memory von NPC/Gegenständen 01/07/2012 - AutoIt - 1 Replies Hallo,
ich hab mir schon einige tutorials angeschaut, aber ich finde leider nirgendwo, wie ich mithilfe von cheat engine die addresse eines npc oder Gegenstand bekomme.
Kann mir dabei bitte jemand helfen?
[HILFE]out of memory (error) 09/17/2011 - Minecraft Server Advertising - 2 Replies Heey liebe Com..
Erstmal hoffe ich, dass ich hier richtig bin, wenn nicht ein großes Sorry meinerseits und bitte moven/closen.
Bei uns kommt nach einer unbestimmten Zeit die Fehlermeldung ''out of memory'' bzw. so ähnlich.
Kennt jemand eine Lösung?
- Greetz KAYME
memory hilfe/unterstuetzung!?!? 01/28/2010 - AutoIt - 15 Replies hallo liebe elitepvpers gemeinde
ich bin zwar nicht neu im forum trozdem breuchte ich die unterstuezung
von euch alteingedienten autoit pro'S
ich hab mal angefangen mir ein bot zu machen
er ist noch lange nicht fertig und fuer das spiel karos online!
ich habe bewust dieses spiel ausgesucht weil es noch in beta status ist und keine gamegurd oder sonstige sicherheit besitzt
so hier nun meine bisherige arbeit im spoiler
Memory Hilfe 01/14/2010 - AutoIt - 8 Replies So ich habe mich mal an den Memorys probiert, und zwar so wie es in den TUT's beschrieben war! Also ergibt das folgenden Code:
Func _hacken()
#include <Memory.au3>
$PID = WinGetProcess("Spider Solitär")
$hprocess = _MemoryOpen($PID)
_MemoryWrite(0x1420B20, $hprcoess, 1)
EndFunc