- Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1= GUICreate("โปรแกรมช่วยเล่น XXX-Online", 413, 197, 285, 153)
$Group1 = GUICtrlCreateGroup("XXX-Online", 16, 8, 377, 113)
$Button1 = GUICtrlCreateButton("เริ่มการทำงาน", 40, 32, 137, 33)
$Button2 = GUICtrlCreateButton("หยุดการทำงาน", 232, 32, 139, 33)
$Button3 = GUICtrlCreateButton("ออกจาโปรแกรม", 232, 72, 139, 33)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label2 = GUICtrlCreateLabel("Creat By. Mr.X", 328, 152, 65, 17)
GUICtrlSetColor(-1, 0x0000FF)
$Label3 = GUICtrlCreateLabel("V.007", 208, 128, 185, 17)
GUICtrlSetColor(-1, 0x0000FF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
ถ้าผมต้องการให้ เมื่อเรากดปุ่ม เริ่มการทำงาน ก็ให้ตัวโปรแกรมสั่ง คลิ๊กขวา 1ที ต้องทำยังไงครับ
แล้วพอกดปุ่ม หยุดการทำงาน ก็ให้ตัวโปรแกรมสั่ง หยุดคลิ๊กขวา ทันที
แล้วพอกดปุ่ม ออกจากโปรแกรม ก็ให้ปิดโปรแกรมทันทีครับ
ต่อจากโค๊ดที่ผมวางไว้ถ้าผมต้องการให้มันทำงานตามที่ผมต้องการ ต้องใส่คำสั่งอะไรลงไปบ้างครับ
ขอบคุณครับ