Что нового

[Окна, Диалоги] Создание вторичного окна

Roman89

Новичок
Сообщения
107
Репутация
3
Всем доброго времени суток!
Мне нужна помощь в создание двочерного окна!
Вот у меня есть скрипт:
Код:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Setup", 263, 116, 536, 281)
$Button1 = GUICtrlCreateButton("Run", 8, 8, 89, 25)
$Button2 = GUICtrlCreateButton("Next", 152, 80, 97, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
                         Exit

Case $Button1
Run("1.exe")

	EndSwitch
WEnd

Мне нужно что бы при нажатие кнопки (Next) в окне программы открывался скрипт
Код:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Setup", 263, 116, 536, 281)
$Label1 = GUICtrlCreateLabel("Привет", 72, 8, 112, 41)
GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif")
GUICtrlSetCursor (-1, 3)
$Button1 = GUICtrlCreateButton("Button1", 80, 72, 97, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
Case $Button1
Run("1.exe")

	EndSwitch
WEnd

Заранее спасибо!
 
Верх