chaos945 Posted January 21, 2005 Share Posted January 21, 2005 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.au3MessageLoop.au3Working_Example___Using_MessageLoops.au3 Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 21, 2005 Administrators Share Posted January 21, 2005 I'm having trouble getting my GUI's to recieve events while looping. See attached examples.OnEvent.au3 //example using OnEventMode 1MessageLoop.au3 //example using loopsWorking Example //example using loops, partially worksThe 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
chaos945 Posted January 24, 2005 Author Share Posted January 24, 2005 (edited) If anyone is curious about resolving your GUI if you encounter something like this, I got it working with loops. Didn't get the Events working though. I'd be interested in any comments on the efficiency of this code.Working_With_Loops.au3 Edited January 24, 2005 by chaos945 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now