will nur wissen warum bei mir error 20 und danach 15 kommt cant read / write memory.
[Only registered and activated users can see links. Click Here To Register...]
Naja hab jetzt mal versucht es mit Nomadmemory zu machen... so schauts aus :
PHP Code:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#RequireAdmin
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Sonnen", 253, 36, 200, 122)
$Button1 = GUICtrlCreateButton("On", 160, 8, 25, 17, $WS_GROUP)
GUICtrlSetFont(-1, 8, 400, 0, "Palatino Linotype")
$Button2 = GUICtrlCreateButton("Off", 192, 8, 25, 17, $WS_GROUP)
GUICtrlSetFont(-1, 8, 400, 0, "Palatino Linotype")
$Input1 = GUICtrlCreateInput("", 80, 8, 73, 19)
GUICtrlSetFont(-1, 6, 400, 0, "Palatino Linotype")
$Label1 = GUICtrlCreateLabel("Sonnen", 8, 8, 58, 20)
GUICtrlSetFont(-1, 8, 400, 0, "Palatino Linotype")
$Graphic1 = GUICtrlCreateGraphic(224, 8, 25, 17)
GUICtrlSetColor(-1, 0x000000)
GUICtrlSetBkColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$GamePid1 = ProcessExists ("PflanzenGegenZombies_og.exe")
$GameHandle1 = _MemoryOpen($GamePid1)
$BaseAdresse1 = 0x0F280068
Dim $Sonnen[3]
$Sonnen[0]=0
$Sonnen[1]=0x5560
$Sonnen[2]= 0x768
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
AdlibRegister("_Sonnen")
Case $Button2
AdlibUnRegister("_Sonnen")
_MemoryPointerWrite($BaseAdresse1,$GameHandle1,$Sonnen, 16230)
GUICtrlSetBkColor($Graphic1, 16711680)
EndSwitch
WEnd
Func _Sonnen()
_MemoryPointerWrite($BaseAdresse1,$GameHandle1,$Sonnen, GUICtrlRead($Input1))
GUICtrlSetBkColor($Graphic1, 65280)
EndFunc
Hab da die Pointer Daten eingegeben die ich gefunden habe.
Leider sind es anscheinend die falschen, weil sich nichts tut.
Ich hab die Pointer auf die Art gesucht
was mache ich falsch ?