- Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 207, 321, 499, 129)
$Start = GUICtrlCreateButton("Start", 40, 168, 75, 25)
$Checkbox = GUICtrlCreateCheckbox("Checkbox", 40, 32, 97, 17)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Start
Sleep(500)
Start()
EndSwitch
WEnd
Func Start()
If GUICtrlRead($Checkbox) = 1 Than
ToolTip( "Hello World" , 0, 0)
Endif
EndFunc
ในกระทูเก่าๆก็ย้อนไปอ่าน
ใน Google เอาตัวอย่างมาศึกษาทีละอัน F1 ก็กดอ่านดูแล้ว
ส่วนมากก็เห็นเค้าใช้
If GUICtrlRead($Checkbox) = 1 Than
ทำไมของผม Run สคริปไม่ขึ้นอ่ะครับ T-T
ปล.ขอบคุณครับ ตอนแรกว่าจะไม่โพสถามแล้วอยากหาด้วยเอง สุดท้ายก็หาไม่ได้ T0T