помогите сколько не пробовал все равно выдает ошибку
Код:
#include <GUIConstants.au3>
#region
#AutoIt3Wrapper_Icon=C:\Users\Lexa\Desktop\im.ico
#AutoIt3Wrapper_res_icon_add=C:\Users\Lexa\Desktop\zhek.ico
#endregion
#Region ### START Koda GUI section ### Form=c:\users\lexa\desktop\avtostartbot.kxf
$Form1_1 = GUICreate("AvtoStart Accounts", 253, 156, 694, 553)
GUISetIcon("C:\Users\Lexa\Desktop\im.ico")
$ListBox1 = GUICtrlCreateList("", 24, 16, 113, 97)
GUICtrlSetData(-1, "Item1|Item2|Item3|Item4|Item5")
$Button5 = GUICtrlCreateButton("&Add", 152, 15, 75, 25, 0)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
$Button1 = GUICtrlCreateButton("&Edit", 152, 51, 75, 25, 0)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
$Button2 = GUICtrlCreateButton("&Delete", 152, 89, 75, 25, 0)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
$Button3 = GUICtrlCreateButton("&START!", 85, 125, 75, 25, 0)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
$Group1 = GUICtrlCreateGroup("", 10, 0, 233, 121)
GUICtrlSetFont(-1, 8, 800, 0, "Palatino Linotype")
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label11 = GUICtrlCreateLabel("Create ToSTeP", 183, 140, 70, 18)
GUICtrlSetFont(-1, 7, 800, 0, "Palatino Linotype")
$Label1 = GUICtrlCreateLabel("Zhyk.ru", 32, 141, 42, 20)
GUICtrlSetFont(-1, 8, 800, 0, "Palatino Linotype")
$Icon1 = GUICtrlCreateIcon("", 0, 5, 128, 24, 24)
GUICtrlSetImage($Icon1, @ScriptFullPath, 201)
GUISetState(@SW_SHOW)
$tray = TraySetIcon("")
GUICtrlSetImage($tray, @ScriptFullPath, 201)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg(1)
Select
Case $nMsg[0] = $Button5
$Form2 = GUICreate("Choosen Dialog", 230, 117, 714, 491)
$Group_2_1 = GUICtrlCreateGroup("", 18, 16, 193, 65)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
$Radio_2_1 = GUICtrlCreateRadio("Input on SID", 26, 32, 169, 17)
$Radio_2_2 = GUICtrlCreateRadio("Input on Login", 26, 56, 169, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label_2_1 = GUICtrlCreateLabel("Choose your type of start", 24, 0, 155, 22)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
$Button2_1 = GUICtrlCreateButton("OK", 64, 88, 97, 25, 0)
GUISetState(@SW_SHOW)
Case $nMsg[0] = $GUI_EVENT_CLOSE
If $nMsg[1] = $Form1_1 Then
Exit
ElseIf $nMsg[1] = $Form2 Then
GUISwitch($Form2)
GUIDelete()
EndIf
EndSelect
$Exist = WinExists('Choosen Dialog','')
Switch $Exist
Case 1
Select
Case $nMsg[0] = $Button2_1
GUISwitch($Form2)
GUIDelete()
EndSelect
EndSwitch
WEnd