Simple Bot problem

06/20/2010 00:53 sandor555#1
Hello!

How to pause the button6?

HTML Code:
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button6
	while 1
sleep(500)
send("{TAB}")
Sleep(700)
send("1")
Sleep(1000)
Send("2")
Sleep(1000)
Send("3")
Sleep(1000)
Send("4")
Sleep(1000)
Send("5")
Sleep(1000)
wend
case $Button7
'(here comes the code)'
EndSwitch
WEnd
06/20/2010 02:03 ax5#2
Try this..

Quote:
If GUICtrlRead($btn_state) = "Start Progress Bar" Then
$iTimerProgress = _Timer_SetTimer($hGUI, $iWait, "_UpdateProgressBar") ;
If @error Or $iTimerProgress = 0 Then ContinueLoop
GUICtrlSetData($btn_state, "Stop Progress Bar")
GUICtrlSetState($btn_change, $GUI_ENABLE)
Else
GUICtrlSetState($btn_change, $GUI_DISABLE)
_Timer_KillTimer($hGUI, $iTimerProgress)
GUICtrlSetData($btn_state, "Start Progress Bar")
EndIf