Cna someone say to me what's the problem in my hack?
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Mini-Trainer-88", 332, 174, 192, 124)
$Button1 = GUICtrlCreateButton("Start", 48, 64, 89, 33)
$Checkbox1 = GUICtrlCreateCheckbox("Speed", 32, 16, 121, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
Hack()
Func Hack()
ToolTip("Start S4 League!",0,0)
$PID = ProcessWait("S4Client.exe")
$OPEN = _MemoryOpen($PID)
If GUICtrlRead($Checkbox1) = 1 then
_MemoryWrite(0x005CCCD4, $OPEN, "99999999", "long")
_MemoryClose($PID)
EndIf
Exit
EndFunc
EndSwitch
WEnd