Thanks. New version
Open program and I click "Program Start and End" and now must open new windows (code is down). Press OK and right side box coming text
01000
(-- TEST --)
G97M3S2500;
Program:
#include <GUIConstantsEx.au3>
GUICreate("CNC list", 614, 390)
$btnGO = GUICtrlCreateButton("&GO", 10, 330, 75, 25)
GUICtrlCreateButton("M list", 85, 330, 75, 25)
GUICtrlSetFont(-1, 10, 700, -1, "MS Sans Serif")
$List_1 = GUICtrlCreateList("", 10, 10, 150, 330)
GUICtrlSetData($List_1, "Program Start and End|G1")
$tbChosen = GUICtrlCreateEdit("", 175, 10, 420, 315)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $btnGO
GUICtrlSetData($tbChosen, GUICtrlRead($List_1) & @CrLf, 1)
EndSwitch
WEnd
New windows:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Insert: Program Start and End", 428, 205, 339, 527)
$Group1 = GUICtrlCreateGroup("Parameters for 'Program Start and End'", 0, 16, 417, 145)
$Label1 = GUICtrlCreateLabel("Program number [1000-6000 ]", 144, 40, 144, 17)
$Input1 = GUICtrlCreateInput("", 16, 40, 121, 21)
$Input2 = GUICtrlCreateInput("", 16, 72, 121, 21)
$Input3 = GUICtrlCreateInput("", 16, 104, 121, 21)
$Label2 = GUICtrlCreateLabel("Program description", 144, 80, 97, 17)
$Label3 = GUICtrlCreateLabel("Max spindle speed", 144, 112, 92, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("OK", 336, 176, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd