Sign in to follow this  
Followers 0
AustrianOak

miscellaneous code in while loop

2 posts in this topic

ive got code that needs to be checked constantly for certain events that may happen and i put it in the while loop in this format:

While 1
$msg = GUIGetMsg()
Select
; misc code here
; misc code here
Case $msg = $GUI_Event_close
etc...

the problem is that the code is being completely skipped maybe because its in the select end select range and its not a case.

and i tried putting it in the while but not in the select and it generates all these errors...

so where do i put it???

:|

Share this post


Link to post
Share on other sites



While 1

$msg = GUIGetMsg()

Select

; misc code here

; misc code here

Case $msg = $GUI_Event_close

etc...

it cant be in a select loop - select only checks for a certain variable

so better

While 1

; misc code here

; misc code here

$msg = GUIGetMsg()

Select

Case $msg = $GUI_Event_close

etc...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0