Из за чего тут ошибка?
Код:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 156, 73, 192, 124)
$Button1 = GUICtrlCreateButton("Старт", 8, 8, 139, 25)
$Button2 = GUICtrlCreateButton("Стоп", 8, 40, 139, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$run = 1
Case $Button2
$run = 0
If $run = 1 Then
MsgBox(0,"","")
EndIf
EndSwitch
WEnd