Hallo leute arbeite gerade an nem kleinen Projekt ...
ALso hier mein Code :
Was ist daran falsch ?
Also was seht ihr daran ?
ALso hier mein Code :
Code:
HotKeySet("{F1}","Change_")
HotKeySet("{F11}","Close_")
If ProcessExists("xxx.exe") = false Then
msgbox(0,"Error","Error : xxx isn´t running. Please start it !")
Exit
EndIf
#RequireAdmin
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
Global $open, $base ,$final, $value
Global $Offset[5]
Global $PID = ProcessExists("xxx.exe")
Global $wert = 0
$Offset[0] = 0
$Offset[1] = Dec("6C4")
$Offset[2] = Dec("4F0")
$Offset[3] = Dec("54")
$Offset[4] = Dec("110")
$Static = Dec("01BCA600")
$open = _MemoryOpen($PID)
$base = _MemoryGetBaseAddress($open, 1)
$final = "0x" & Hex($base + $Static)
$value = _MemoryPointerRead($final, $open, $Offset)
#Region ### START Koda GUI section ### Form=
$Gunadder = GUICreate("Test", 208, 31, 1687, 6, $WS_POPUP)
GUISetBkColor(0x000000)
$Label1 = GUICtrlCreateLabel("Number", 8, 8, 101, 17)
GUICtrlSetColor(-1, 0x00FF00)
$Gun = GUICtrlCreateInput("", 112, 5, 41, 21)
$Label2 = GUICtrlCreateLabel("xxx", 160, 8, 44, 17)
GUICtrlSetFont(-1, 8, 400, 4, "MS Sans Serif")
GUICtrlSetColor(-1, 0x3399FF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While sleep(1)
_MemoryPointerWrite($final, $open, $Offset, $wert, "dword")
WEnd
Func Change_()
$Wert = GuiCtrlRead($Gun)
EndFunc
Func Close_()
_MemoryClose($open)
Exit
EndFunc
Also was seht ihr daran ?