this is a Suspende write in autoit
this is the source code
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
local $aegis="Aegis.exe"
local $onstagefailed="false"
if @OSArch="X64" Then
local $aegis="Aegis64.exe"
endif
$dll=DllOpen("user32.dll")
$Form1 = GUICreate("S4 League Suspender Tool [0.1]", 302, 249, 369, 173)
$Progress1 = GUICtrlCreateProgress(4, 228, 293, 17)
GUISetState(@SW_SHOW)
GUICtrlSetData($Progress1,10)
$Label1 = GUICtrlCreateLabel("S4 LeaGue", 26, 10, 79, 20)
GUICtrlSetFont(-1, 12, 800, 0, "Narkisim")
GUICtrlSetColor(-1, 0xFF0000)
$Label2 = GUICtrlCreateLabel("Off...", 36, 38, 81, 17)
if ProcessExists("S4Client.exe") then GUICtrlSetData($label2,"On!!!")
$Button1 = GUICtrlCreateButton("Suspend!", 118, 14, 73, 37)
GUICtrlSetData($Progress1,20)
$Label3 = GUICtrlCreateLabel("HGWC", 38, 72, 48, 22)
GUICtrlSetFont(-1, 12, 800, 0, "Rod Transparent")
GUICtrlSetColor(-1, 0x800080)
$Label4 = GUICtrlCreateLabel("Off...", 36, 104, 79, 17)
if ProcessExists("HGWC.exe") then GUICtrlSetData($label4,"On!!!")
$Button2 = GUICtrlCreateButton("Suspend!", 118, 78, 73, 37)
$Button3 = GUICtrlCreateButton("Resume!", 198, 14, 73, 37)
GUICtrlSetData($Progress1,30)
$Button4 = GUICtrlCreateButton("Resume!", 197, 78, 73, 37)
$Label5 = GUICtrlCreateLabel("Aegis", 38, 132, 35, 21)
GUICtrlSetFont(-1, 11, 800, 0, "Roman")
GUICtrlSetColor(-1, 0x00FF00)
if @OSArch="X64" Then
GUICtrlSetData($label5,"Aegis64")
EndIf
$Label6 = GUICtrlCreateLabel("Off...", 36, 158, 79, 17)
if ProcessExists("Aegis.exe") then GUICtrlSetData($label6,"On!!!")
$Radio1 = GUICtrlCreateRadio("Autokill", 28, 182, 55, 17)
GUICtrlSetData($Progress1,50)
GUICtrlSetState(-1, $GUI_CHECKED)
$Radio2 = GUICtrlCreateRadio("No remove", 28, 204, 73, 17)
$Group1 = GUICtrlCreateGroup("Automatize", 116, 142, 153, 71)
$Checkbox1 = GUICtrlCreateCheckbox("Stop automatically", 130, 164, 127, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
$Button5 = GUICtrlCreateButton("Resume All", 128, 184, 129, 21)
ava(100)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetData($Progress1,0)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
If ProcessExists("S4Client.exe") <> 0 and $onstagefailed="false" Then
$PID = ProcessWait("S4Client.exe")
$OPEN = _MEMORYOPEN($PID)
if guictrlread($radio1)=1 then
GUICtrlSetState($label6, "i kill it")
processclose($aegis)
GUICtrlSetState($label6, "Off...")
EndIf
Do
If $nMSG = -3 Then Exit
If $nMSG = $GUI_EVENT_CLOSE Then Exit
Until _MEMORYREAD(16190104, $OPEN, "char[50]") = "OnStageFailed"
local $onstagefailed="true"
GUICtrlSetData($label4,"On!!!")
EndIf
_SospendiS4()
GUICtrlSetData($label2,"Suspend...")
case $Button3
_Riprendis4()
GUICtrlSetData($label2,"Off...")
if ProcessExists("S4Client.exe") then
GUICtrlSetData($label2,"On!!!")
endif
case $Button2
_SospendiHGWC()
GUICtrlSetData($label4,"Suspend...")
case $Button4
_RiprendiHGWC()
GUICtrlSetData($label4,"Off...")
if ProcessExists("HGWC.exe") then
GUICtrlSetData($label4,"On!!!")
endif
case $Button5
_Riprendis4()
_RiprendiHGWC()
GUICtrlSetData($label2,"Resuming...")
sleep(100)
GUICtrlSetData($label2,"Off...")
if ProcessExists("S4Client.exe") then
GUICtrlSetData($label2,"On!!!")
endif
GUICtrlSetData($label4,"Resuming...")
sleep(100)
GUICtrlSetData($label4,"Off...")
if ProcessExists("HGWC.exe") then
GUICtrlSetData($label4,"On!!!")
endif
EndSwitch
If ProcessExists("S4Client.exe") <> 0 Then
$PID = ProcessWait("S4Client.exe")
$OPEN = _MEMORYOPEN($PID)
if guictrlread($radio1)=1 then
GUICtrlSetState($label6, "i kill it")
processclose($aegis)
GUICtrlSetState($label6, "Off...")
EndIf
Do
If $nMSG = -3 Then Exit
If $nMSG = $GUI_EVENT_CLOSE Then Exit
Until _MEMORYREAD(16190104, $OPEN, "char[50]") = "OnStageFailed"
local $onstagefailed="true"
GUICtrlSetData($label4,"On!!!")
if guictrlread($Checkbox1)=1 then
_SospendiS4()
GUICtrlSetData($label2,"Suspend...")
_SospendiHGWC()
GUICtrlSetData($label4,"Suspend...")
endif
EndIf
if not ProcessExists("S4Client.exe") Then
GUICtrlSetData($label2,"Off...")
EndIf
if not ProcessExists("HGWC.exe") Then
GUICtrlSetData($label4,"Off...")
EndIf
WEnd
func ava($percentuale)
GUICtrlSetData($Progress1,$percentuale)
EndFunc
Func _SospendiS4()
$processo = ProcessExists("S4Client.exe")
If $processo Then
$Blocca = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processo)
$successo = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $Blocca[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $Blocca)
If IsArray($successo) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
Func _RiprendiS4()
$processo = ProcessExists("S4Client.exe")
If $processo Then
$Blocca = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processo)
$successo = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $Blocca[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $Blocca)
If IsArray($successo) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
Func _SospendiHGWC()
$processo = ProcessExists("HGWC.exe")
If $processo Then
$Blocca = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processo)
$successo = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $Blocca[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $Blocca)
If IsArray($successo) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
Func _RiprendiHGWC()
$processo = ProcessExists("HGWC.exe")
If $processo Then
$Blocca = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processo)
$successo = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $Blocca[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $Blocca)
If IsArray($successo) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>
#Region ### START Koda GUI section ### Form=
local $aegis="Aegis.exe"
local $onstagefailed="false"
if @OSArch="X64" Then
local $aegis="Aegis64.exe"
endif
$dll=DllOpen("user32.dll")
$Form1 = GUICreate("S4 League Suspender Tool [0.1]", 302, 249, 369, 173)
$Progress1 = GUICtrlCreateProgress(4, 228, 293, 17)
GUISetState(@SW_SHOW)
GUICtrlSetData($Progress1,10)
$Label1 = GUICtrlCreateLabel("S4 LeaGue", 26, 10, 79, 20)
GUICtrlSetFont(-1, 12, 800, 0, "Narkisim")
GUICtrlSetColor(-1, 0xFF0000)
$Label2 = GUICtrlCreateLabel("Off...", 36, 38, 81, 17)
if ProcessExists("S4Client.exe") then GUICtrlSetData($label2,"On!!!")
$Button1 = GUICtrlCreateButton("Suspend!", 118, 14, 73, 37)
GUICtrlSetData($Progress1,20)
$Label3 = GUICtrlCreateLabel("HGWC", 38, 72, 48, 22)
GUICtrlSetFont(-1, 12, 800, 0, "Rod Transparent")
GUICtrlSetColor(-1, 0x800080)
$Label4 = GUICtrlCreateLabel("Off...", 36, 104, 79, 17)
if ProcessExists("HGWC.exe") then GUICtrlSetData($label4,"On!!!")
$Button2 = GUICtrlCreateButton("Suspend!", 118, 78, 73, 37)
$Button3 = GUICtrlCreateButton("Resume!", 198, 14, 73, 37)
GUICtrlSetData($Progress1,30)
$Button4 = GUICtrlCreateButton("Resume!", 197, 78, 73, 37)
$Label5 = GUICtrlCreateLabel("Aegis", 38, 132, 35, 21)
GUICtrlSetFont(-1, 11, 800, 0, "Roman")
GUICtrlSetColor(-1, 0x00FF00)
if @OSArch="X64" Then
GUICtrlSetData($label5,"Aegis64")
EndIf
$Label6 = GUICtrlCreateLabel("Off...", 36, 158, 79, 17)
if ProcessExists("Aegis.exe") then GUICtrlSetData($label6,"On!!!")
$Radio1 = GUICtrlCreateRadio("Autokill", 28, 182, 55, 17)
GUICtrlSetData($Progress1,50)
GUICtrlSetState(-1, $GUI_CHECKED)
$Radio2 = GUICtrlCreateRadio("No remove", 28, 204, 73, 17)
$Group1 = GUICtrlCreateGroup("Automatize", 116, 142, 153, 71)
$Checkbox1 = GUICtrlCreateCheckbox("Stop automatically", 130, 164, 127, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
$Button5 = GUICtrlCreateButton("Resume All", 128, 184, 129, 21)
ava(100)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetData($Progress1,0)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
If ProcessExists("S4Client.exe") <> 0 and $onstagefailed="false" Then
$PID = ProcessWait("S4Client.exe")
$OPEN = _MEMORYOPEN($PID)
if guictrlread($radio1)=1 then
GUICtrlSetState($label6, "i kill it")
processclose($aegis)
GUICtrlSetState($label6, "Off...")
EndIf
Do
If $nMSG = -3 Then Exit
If $nMSG = $GUI_EVENT_CLOSE Then Exit
Until _MEMORYREAD(16190104, $OPEN, "char[50]") = "OnStageFailed"
local $onstagefailed="true"
GUICtrlSetData($label4,"On!!!")
EndIf
_SospendiS4()
GUICtrlSetData($label2,"Suspend...")
case $Button3
_Riprendis4()
GUICtrlSetData($label2,"Off...")
if ProcessExists("S4Client.exe") then
GUICtrlSetData($label2,"On!!!")
endif
case $Button2
_SospendiHGWC()
GUICtrlSetData($label4,"Suspend...")
case $Button4
_RiprendiHGWC()
GUICtrlSetData($label4,"Off...")
if ProcessExists("HGWC.exe") then
GUICtrlSetData($label4,"On!!!")
endif
case $Button5
_Riprendis4()
_RiprendiHGWC()
GUICtrlSetData($label2,"Resuming...")
sleep(100)
GUICtrlSetData($label2,"Off...")
if ProcessExists("S4Client.exe") then
GUICtrlSetData($label2,"On!!!")
endif
GUICtrlSetData($label4,"Resuming...")
sleep(100)
GUICtrlSetData($label4,"Off...")
if ProcessExists("HGWC.exe") then
GUICtrlSetData($label4,"On!!!")
endif
EndSwitch
If ProcessExists("S4Client.exe") <> 0 Then
$PID = ProcessWait("S4Client.exe")
$OPEN = _MEMORYOPEN($PID)
if guictrlread($radio1)=1 then
GUICtrlSetState($label6, "i kill it")
processclose($aegis)
GUICtrlSetState($label6, "Off...")
EndIf
Do
If $nMSG = -3 Then Exit
If $nMSG = $GUI_EVENT_CLOSE Then Exit
Until _MEMORYREAD(16190104, $OPEN, "char[50]") = "OnStageFailed"
local $onstagefailed="true"
GUICtrlSetData($label4,"On!!!")
if guictrlread($Checkbox1)=1 then
_SospendiS4()
GUICtrlSetData($label2,"Suspend...")
_SospendiHGWC()
GUICtrlSetData($label4,"Suspend...")
endif
EndIf
if not ProcessExists("S4Client.exe") Then
GUICtrlSetData($label2,"Off...")
EndIf
if not ProcessExists("HGWC.exe") Then
GUICtrlSetData($label4,"Off...")
EndIf
WEnd
func ava($percentuale)
GUICtrlSetData($Progress1,$percentuale)
EndFunc
Func _SospendiS4()
$processo = ProcessExists("S4Client.exe")
If $processo Then
$Blocca = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processo)
$successo = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $Blocca[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $Blocca)
If IsArray($successo) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
Func _RiprendiS4()
$processo = ProcessExists("S4Client.exe")
If $processo Then
$Blocca = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processo)
$successo = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $Blocca[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $Blocca)
If IsArray($successo) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
Func _SospendiHGWC()
$processo = ProcessExists("HGWC.exe")
If $processo Then
$Blocca = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processo)
$successo = DllCall("ntdll.dll", "int", "NtSuspendProcess", "int", $Blocca[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $Blocca)
If IsArray($successo) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
Func _RiprendiHGWC()
$processo = ProcessExists("HGWC.exe")
If $processo Then
$Blocca = DllCall("kernel32.dll", 'int', 'OpenProcess', 'int', 0x1f0fff, 'int', False, 'int', $processo)
$successo = DllCall("ntdll.dll", "int", "NtResumeProcess", "int", $Blocca[0])
DllCall('kernel32.dll', 'ptr', 'CloseHandle', 'ptr', $Blocca)
If IsArray($successo) Then
Return 1
Else
SetError(1)
Return 0
EndIf
Else
SetError(2)
Return 0
EndIf
EndFunc
is an open source
is not very good xD is a first
Function on
Windows XP
vista 32bit 64bit (required admin)
7 32bit 64bit (required admin)
VirusTotal Scan
download
(with source file .au3)