Jump to content

miscellaneous code in while loop


Recommended Posts

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???

:|

Link to comment
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...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...