Asa trebuie sa arate programul :
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 180, 129, 193, 143)
$paint = GUICtrlCreateButton("Deschide", 48, 16, 75, 25, 0)
$close = GUICtrlCreateButton("Inchide", 48, 64, 75, 25, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $close
$ce_sa_inchid = "mspaint.exe"
ProcessClose($ce_sa_inchid)
Case $paint
ShellExecute("mspaint.exe")
EndSwitch
WEnd