#include
#include
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 184, 100, 192, 124)
GUICtrlCreateInput("", 72, 8, 49, 21)
$Label1 = GUICtrlCreateLabel("ตั้งค่า Delay", 8, 16, 58, 17)
GUICtrlCreateButton("บันทึก", 144, 72, 35, 25)
$Label2 = GUICtrlCreateLabel("วินาที", 128, 16, 30, 17)
$Label3 = GUICtrlCreateLabel("1000 วินาที = 1 วินาที", 8, 72, 102, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
case $Input
ControlClick ($d3,'',0,$mLeft,1,967,607)
Sleep () #ตั้งค่า Delay สามารถกำหนดเองได้
Case $button
(save) # save เมื่ตั้งค่า Delay เสร็จแล้ว
Exit
EndSwitch
WEnd
คือผมเขียนแล้วมันมั่วๆยังไงไม่รู้อะครับ คอมพายไม่ได้เลย
คือผมอยากให้มันสามารถใส่ค่า Delay เองได้ครับ แล้วบันทึกค่านั้น เมื่อเราทำการเปลี่ยนค่าดีเลย์ ก็จะสามรถบันทึกแทนค่าอันเก่าได้ครับ ขอโทษทีนะครับ เพิ่งจะลองเขียนแบบ GUI ยังไงช่วยอธิบายทีนะครับ
#include
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 184, 100, 192, 124)
GUICtrlCreateInput("", 72, 8, 49, 21)
$Label1 = GUICtrlCreateLabel("ตั้งค่า Delay", 8, 16, 58, 17)
GUICtrlCreateButton("บันทึก", 144, 72, 35, 25)
$Label2 = GUICtrlCreateLabel("วินาที", 128, 16, 30, 17)
$Label3 = GUICtrlCreateLabel("1000 วินาที = 1 วินาที", 8, 72, 102, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
case $Input
ControlClick ($d3,'',0,$mLeft,1,967,607)
Sleep () #ตั้งค่า Delay สามารถกำหนดเองได้
Case $button
(save) # save เมื่ตั้งค่า Delay เสร็จแล้ว
Exit
EndSwitch
WEnd
คือผมเขียนแล้วมันมั่วๆยังไงไม่รู้อะครับ คอมพายไม่ได้เลย
คือผมอยากให้มันสามารถใส่ค่า Delay เองได้ครับ แล้วบันทึกค่านั้น เมื่อเราทำการเปลี่ยนค่าดีเลย์ ก็จะสามรถบันทึกแทนค่าอันเก่าได้ครับ ขอโทษทีนะครับ เพิ่งจะลองเขียนแบบ GUI ยังไงช่วยอธิบายทีนะครับ