Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Do Loop, Sleep and Mouse Button
#1
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???
Reply


Messages In This Thread
Do Loop, Sleep and Mouse Button - by Dimster - 09-05-2025, 06:19 PM
RE: Do Loop, Sleep and Mouse Button - by bplus - 09-05-2025, 09:10 PM
RE: Do Loop, Sleep and Mouse Button - by Pete - 09-05-2025, 11:03 PM
RE: Do Loop, Sleep and Mouse Button - by SMcNeill - 09-05-2025, 11:21 PM
RE: Do Loop, Sleep and Mouse Button - by Pete - 09-05-2025, 11:43 PM
RE: Do Loop, Sleep and Mouse Button - by Dimster - 09-06-2025, 12:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Setting mouse to ignore outside of _NewImage PhilOfPerth 11 710 12-18-2025, 07:20 PM
Last Post: Pete
  Exiting sub while inside a loop PhilOfPerth 5 500 12-05-2025, 09:40 AM
Last Post: PhilOfPerth
  Using modulo to loop through lists fistfullofnails 3 705 09-03-2025, 11:50 PM
Last Post: fistfullofnails
  Stopping repeated mouse-key press PhilOfPerth 8 845 09-02-2025, 11:28 PM
Last Post: Pete
  _MessageBox ignores default button johngreening 2 597 04-27-2025, 07:34 PM
Last Post: hsiangch_ong

Forum Jump:


Users browsing this thread: 1 Guest(s)