ผมลองโหลดโปรแกรม GUI Designer: Koda มาลองใช้ดูปรากฎว่า งงไม่รู้จะเริ่มต้นใส่ สคิปที่เขียนอย่างไรดี เพราะไม่เหมือนกับที่เขียนเป็นสคริปสั่งกดปุ่ม ที่สามารถใช้งานใช้งานได้ทันที
ความคิดผมคือ ใส่ชื่อ - นามสกุล ลงไปใน ช่อง input1 >>> เมื่อกดที่ปุ่ม Button1 >>> ข้อความจะไปขึ้นที่ Edit1และจะลบข้อความเมื่อครบ 5 บรรทัด
อันนี้คือ Code ที่โปรแกรมสร้างขึ้น
ความคิดผมคือ ใส่ชื่อ - นามสกุล ลงไปใน ช่อง input1 >>> เมื่อกดที่ปุ่ม Button1 >>> ข้อความจะไปขึ้นที่ Edit1และจะลบข้อความเมื่อครบ 5 บรรทัด
อันนี้คือ Code ที่โปรแกรมสร้างขึ้น
- Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Documents and Settings\OIC\Desktop\Form1.kxf
$TEST = GUICreate("TEST", 206, 367, 448, 190)
$Button1 = GUICtrlCreateButton("Button1", 24, 104, 145, 41)
GUICtrlSetFont(-1, 16, 400, 0, "Angsana New")
$Edit1 = GUICtrlCreateEdit("", 32, 224, 145, 81)
GUICtrlSetData(-1, "Edit1")
GUICtrlSetFont(-1, 16, 400, 0, "Angsana New")
$Input1 = GUICtrlCreateInput("»é͹ ª×èÍ - ¹ÒÁÊ¡ØÅ", 24, 24, 153, 37)
GUICtrlSetLimit(-1, 15)
GUICtrlSetFont(-1, 16, 400, 0, "Angsana New")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd