i tried to make a gui counter with one button start/pause,
but when it starts, it looks refresh quickly, and cpu usage is not low,
how can i make it better ? thanks!
#include <GUIConstantsEx.au3>
$gui = GUICreate("Test", 333, 333)
$btn01=GUICtrlCreateButton("START",15,15)
GUISetFont(222 )
$lbl01 = GUICtrlCreateLabel("", 45, 53, 300, 300)
GUISetState()
Global $cnt=0, $swh=0
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $btn01
$cnt +=1
$swh