Ho do make double click > Program Start and End and opeb box.
And last. Here come result :
1000
TEST
2500
But need:
01000;
(-- TEST --)
G97M3S2500;
#include <GUIConstantsEx.au3>
[/autoit][autoit][/autoit][autoit]#region GUI1
$GUI1 = 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)
[/autoit][autoit][/autoit][autoit]GUISetState(@SW_SHOW, $GUI1)
#endregion GUI1
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("", 428, 205, 339, 527)
$Group1 = GUICtrlCreateGroup("", 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)
#endregion ### END Koda GUI section ###
While 1
$aMsg = GUIGetMsg(1)
Switch $aMsg[1]
Case $GUI1
Switch $aMsg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $btnGO
$sListRead = GUICtrlRead($List_1)
WinSetTitle($Form1, "", "Insert: " & $sListRead)
GUICtrlSetData($Group1, "Parameters for '" & $sListRead & "'")
GUISetState(@SW_SHOW, $Form1)
EndSwitch
Case $Form1
Switch $aMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE, $Form1)
Case $Button1
GUICtrlSetData($tbChosen, GUICtrlRead($Input1) & @CRLF & _
GUICtrlRead($Input2) & @CRLF & _
GUICtrlRead($Input3) & @CRLF, 1)
GUISetState(@SW_HIDE, $Form1)
EndSwitch
EndSwitch
WEnd