Jump to content

GUIGetMsg while looping


 Share

Recommended Posts

I'm having trouble getting my GUI's to recieve events while looping. See attached examples.

OnEvent.au3 //example using OnEventMode 1

MessageLoop.au3 //example using loops

Working Example //example using loops, partially works

The working example will function correctly when the program in question is run before entering the loop. The terminate button functions in this case, but when Generating a new event it will not be recieved until the loop is over...

OnEvent.au3

MessageLoop.au3

Working_Example___Using_MessageLoops.au3

Link to comment
Share on other sites

  • Administrators

I'm having trouble getting my GUI's to recieve events while looping.  See attached examples.

OnEvent.au3 //example using OnEventMode 1

MessageLoop.au3 //example using loops

Working Example //example using loops, partially works

The working example will function correctly when the program in question is run before entering the loop.  The terminate button functions in this case, but when Generating a new event it will not be recieved until the loop is over...

Each time you call GuiGetMsg you are getting a unique event from the queue. Your script is throwing away lots of events without checking what they were.
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...