Code:
PHP Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 8, 8, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Case $Button1
Global Const $PROCESS_ALL_ACCESS = 0x1f0fff
ToolTip("S4Client starten ...", 0, 0)
$S4 = 0x00D38BC0
$WAIT = ProcessWait("S4Client.exe")
$WAIT = ProcessWait("S4Client.exe")
$PID = ProcessExists("S4Client.exe")
$OPEN = _MEMORYOPEN($PID)
_MEMORYWRITE(0x00D38BC0, $OPEN, "range", "Char[5]")
MsgBox(0,"Success","Have Fun")
Exit
EndSwitch
WEnd






