#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Сleanout", 203, 71, 668, 394)
$Label1 = GUICtrlCreateLabel("", 64, 8, 68, 17)
$Button1 = GUICtrlCreateButton("Включить", 8, 32, 97, 33)
$Button2 = GUICtrlCreateButton("Выключить", 112, 32, 81, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit; Завершение работы скрипта
Case $Button1
Sleep(2000)
FileDelete("ppp.exe")
Sleep(2000)
FileDelete("ppp.exe")
Sleep(2000)
FileDelete("ppp.exe")
Case $Button2
Exit; Завершение работы скрипта
EndSwitch
WEnd