#RequireAdmin
#NoTrayIcon
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Auto F5 By Kyan", 393, 169, 192, 114)
$Button1 = GUICtrlCreateButton("Start", 160, 80, 209, 73)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Ajouter Case $Button1!!!
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Hack()
EndSwitch
WEnd
Func _Hack()
GUISetState(@SW_HIDE)
ToolTip("Wait S4League", 0, 0)
ProcessWait("S4Client.exe")
ProcessExists("S4Client.exe")
ControlSend("S4 Client", "", 0, "{F5}")
Sleep(3000)
If Not WinExists("S4 Client") = 1 Then Exit
Exit