09-05-2025, 06:19 PM
I have code laid out as follows:
Do
Do
...some code
Loop
Sleep
Do
....some more code
Loop
Sleep
Loop Until _MouseButton(1)
What happens with this code is that I can loop between two screens of data results ad infinitum and linger on the screens as long as I like before triggering the 2nd screen. The plan was to exit using a Left Button click alone, but what's happening is that I need to hold down any key and then the Left Button click. That holding down any key has the screens rapidly flipping until the Left Button click. I believe I need a different mechanism than "Sleep" to allow each Screen of data to display as long as the user likes before presenting the next screen of data. I don't think _Delay or _Limit would work here???
Do
Do
...some code
Loop
Sleep
Do
....some more code
Loop
Sleep
Loop Until _MouseButton(1)
What happens with this code is that I can loop between two screens of data results ad infinitum and linger on the screens as long as I like before triggering the 2nd screen. The plan was to exit using a Left Button click alone, but what's happening is that I need to hold down any key and then the Left Button click. That holding down any key has the screens rapidly flipping until the Left Button click. I believe I need a different mechanism than "Sleep" to allow each Screen of data to display as long as the user likes before presenting the next screen of data. I don't think _Delay or _Limit would work here???


