I make a new hack but I didnot know what is wrong in it !!!
the code of my hack !!..
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("My First Hack By MaDo Rafik", 539, 385, 268, 129)
$Button1 = GUICtrlCreateButton("Hack", 336, 240, 75, 121)
$Button2 = GUICtrlCreateButton("Exit", 96, 240, 75, 121)
$Checkbox1 = GUICtrlCreateCheckbox("Inf Ammo", 40, 24, 97, 41)
$Checkbox2 = GUICtrlCreateCheckbox("Inf Sp", 40, 96, 97, 25)
$Checkbox3 = GUICtrlCreateCheckbox("1 Hit Kill", 40, 160, 97, 33)
$Checkbox4 = GUICtrlCreateCheckbox("200 HP", 320, 32, 97, 33)
$Checkbox5 = GUICtrlCreateCheckbox("Cut Speed", 320, 104, 97, 17)
$Checkbox6 = GUICtrlCreateCheckbox("Fast Fire", 320, 168, 97, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Hack()
Case $Button2
Exit
EndSwitch
WEnd
Func _Hack(); This is the functions which turns on the hacks when you start S4 League.
GUISetState(@SW_HIDE);
ToolTip("Start S4 League!",0,0); This is up in the corner which says Start S4 League!
$WAIT = ProcessWait("S4Client.exe"); Waiting For S4 League
$PID = ProcessExists("S4Client.exe"); He found S4Client.exe
Sleep(500);Takes a little break..
$OPEN = _MemoryOpen ($PID); The memory .. which makes the function work.
If GUICtrlRead($Checkbox1) = 1 Then
_MemoryWrite(0x00784541,$OPEN,"Inf Ammo","long"); This is a long value.
EndIf
If GUICtrlRead($Checkbox2) = 1 Then
_MemoryWrite(0x0048C822,$OPEN,"Inf Sp","long"); This is a long value.
EndIf
If GUICtrlRead($Checkbox3) = 1 Then
_MemoryWrite(0x00528679,$OPEN,"1 Hit Kill","long"); This is a long value.
EndIf
If GUICtrlRead($Checkbox4) = 1 Then
_MemoryWrite(0x00527924,$OPEN,"200 HP","long"); This is a long value.
EndIf
If GUICtrlRead($Checkbox5) = 1 Then
_MemoryWrite(0x0062C34E,$OPEN,"Cut Speed","long"); This is a long value.
EndIf
If GUICtrlRead($Checkbox6) = 1 Then
_MemoryWrite(0x0056F5B9,$OPEN,"Fast Fire","long"); This is a long value.
EndIf
Exit
EndFunc
please anyone tell me what the wrong in Code !!






