chaos945 0 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 Share this post Link to post Share on other sites
Jon 1,009 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/ Share this post Link to post Share on other sites
chaos945 0 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 Share this post Link to post Share on other sites