คือผมอยากต้องการให้สคิปอ่านฟังชัน ตามที่กรอกใน Input ทำยังไง อะครับ
ผมใส่ $Input1 (ขึ้นตัวสีเทา) มันไม่อ่านอะครับ
ผมใส่ $Input1 (ขึ้นตัวสีเทา) มันไม่อ่านอะครับ
#RequireAdmin
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("ShowMessenger", 269, 87, 253, 173)
$Button1 = GUICtrlCreateButton("ขึ้นข้อความ", 56, 48, 153, 25)
$Input1 = GUICtrlCreateInput("", 24, 16, 217, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
readGui()
EndSwitch
WEnd
Func readGui()
MsgBox(0,"Show Input ",GUICtrlRead($Input1))
EndFunc
|
|