Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mouse Help Needed
#18
(05-02-2022, 04:51 PM)dcromley Wrote: Fun!  Is there any disadvantage in making the _Delay smaller in line 125 and below?  I changed .25's to .05's and the sliders were smoother.  Thanks.

The delay is there to wait for user to release the mousebutton for a finished "click" .

Mousebutton(1) just reports whether the Left mousebutton is down or not after the most recent poll of mouse ie
While _MouseInput : Wend  ' this gets update of mouse position and buttoms and is what I call polling the mouse.

You could have a loop wait until the _mousebutton(1) is false but that is complicated but more accurate!

So yes, if you are a fast clicker you don't have to _delay .25. A delay is there so your loop doesn't keep telling you the mousebutton is down and repeat your mousebutton down instructions over and over. It's like you want to get clear of the mousedown signal that you already responded to.


BTW, I could have more efficiently put the _delay .25 once, before I exit the
Code: (Select All)
If MB Then
block instead of 3 places after each response to a so called "click" really a Left Mousebutton down = true signal.


Man, trying to be thoroughly accurate while not adding to confusion is hard to word sometimes!


Also confusing, we are calling them slider bars, but I just want to click the point where I want to be on the bar.
An actually slider will work different, more complex and then it would be best to keep polling mouse until the button is released and then little or no delay would make the slider less jerky, smoother but you have to check for release of mouse... more complicated so I went with "click" mouse function, so method I offer is "click" bars not slider drag mouse type bars.


I say master the "click" before advanced drag and drop, specially for people just learning mouse.
b = b + ...
Reply


Messages In This Thread
Mouse Help Needed - by SierraKen - 05-02-2022, 01:30 AM
RE: Mouse Help Needed - by bplus - 05-02-2022, 01:56 AM
RE: Mouse Help Needed - by SierraKen - 05-02-2022, 02:03 AM
RE: Mouse Help Needed - by SierraKen - 05-02-2022, 02:11 AM
RE: Mouse Help Needed - by bplus - 05-02-2022, 02:48 AM
RE: Mouse Help Needed - by bplus - 05-02-2022, 03:54 AM
RE: Mouse Help Needed - by bplus - 05-02-2022, 04:03 AM
RE: Mouse Help Needed - by bplus - 05-02-2022, 04:22 AM
RE: Mouse Help Needed - by SierraKen - 05-02-2022, 04:26 AM
RE: Mouse Help Needed - by SierraKen - 05-02-2022, 04:25 AM
RE: Mouse Help Needed - by SierraKen - 05-02-2022, 04:30 AM
RE: Mouse Help Needed - by bplus - 05-02-2022, 04:32 AM
RE: Mouse Help Needed - by SierraKen - 05-02-2022, 04:33 AM
RE: Mouse Help Needed - by bplus - 05-02-2022, 04:37 AM
RE: Mouse Help Needed - by SierraKen - 05-02-2022, 04:52 AM
RE: Mouse Help Needed - by SierraKen - 05-02-2022, 05:09 AM
RE: Mouse Help Needed - by dcromley - 05-02-2022, 04:51 PM
RE: Mouse Help Needed - by bplus - 05-02-2022, 05:10 PM
RE: Mouse Help Needed - by OldMoses - 05-02-2022, 06:17 PM
RE: Mouse Help Needed - by bplus - 05-02-2022, 06:58 PM
RE: Mouse Help Needed - by OldMoses - 05-02-2022, 11:53 PM
RE: Mouse Help Needed - by SierraKen - 05-03-2022, 11:26 PM
RE: Mouse Help Needed - by SierraKen - 05-03-2022, 11:34 PM
RE: Mouse Help Needed - by OldMoses - 05-04-2022, 04:37 PM
RE: Mouse Help Needed - by bplus - 05-04-2022, 04:43 PM
RE: Mouse Help Needed - by OldMoses - 05-04-2022, 05:04 PM
RE: Mouse Help Needed - by bplus - 05-04-2022, 05:12 PM
RE: Mouse Help Needed - by OldMoses - 05-05-2022, 12:25 AM



Users browsing this thread: 4 Guest(s)