Quote:
Originally Posted by elwany
Please guys how i can make Stop / Start in Same Button in Koda form design
and programed it to work with my bot code
sorry if wrong forum
|
Code:
#include <GUIConstantsEx.au3>
$Form1 = GUICreate("uq0w", 270, 148, 192, 124)
$Button1 = GUICtrlCreateButton("Start", 8, 8, 75, 25)
$Button2 = GUICtrlCreateButton("Stop", 8, 8, 75, 25)
GUISetState(@SW_SHOW)
GUICtrlSetState($button2, $GUI_HIDE)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $button1
GUICtrlSetState($button1, $GUI_HIDE)
GUICtrlSetState($button2, $GUI_SHOW)
Case $button2
GUICtrlSetState($button1, $GUI_SHOW)
GUICtrlSetState($button2, $GUI_HIDE)
EndSwitch
WEnd
This is simple ****... I assume you are working on a c&p project.