Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best Double Click method....
#3
(10-30-2025, 03:20 AM)Pete Wrote:
Code: (Select All)
Do
    mouse clkcnt, lb
    If clkcnt = 2 Then Sound 1000, .1
Loop

Sub mouse (clkcnt, lb)
    Static z1
    While _MouseInput: Wend
    If z1 Then If Abs(Timer - z1) > .25 Then z1 = 0: clkcnt = 0
    If lb = 2 Then lb = 0 ' Click cycle completed.
    If lb = 1 And _MouseButton(1) = 0 Then lb = 2 ' Button released.
    If lb = -1 Then lb = 1 ' Button held down.
    If lb = 0 Then lb = _MouseButton(1)
    If lb = -1 Then z1 = Timer: clkcnt = clkcnt + 1: Locate 1, 1: Print "Click Count ="; clkcnt; "  ";
End Sub

Pete
Damn Pete, WEND! SOUND! Showing ones age there aint ya! Thanks though, I appreciate it even though its only for one button and doesn't have a specific time limit option for a double click as a parameter...it acceptable!

John (Sorry for being cheeky sir!)
Reply


Messages In This Thread
Best Double Click method.... - by Unseen Machine - 10-30-2025, 12:36 AM
RE: Best Double Click method.... - by Pete - 10-30-2025, 03:20 AM
RE: Best Double Click method.... - by Unseen Machine - 10-30-2025, 03:48 AM
RE: Best Double Click method.... - by Pete - 10-30-2025, 03:53 AM
RE: Best Double Click method.... - by SMcNeill - 10-30-2025, 05:53 AM
RE: Best Double Click method.... - by Pete - 10-30-2025, 08:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Double slit experiment vince 7 1,682 07-18-2024, 11:06 PM
Last Post: Pete
  Click Away Balls bplus 6 1,577 05-16-2022, 01:04 PM
Last Post: Dav

Forum Jump:


Users browsing this thread: 1 Guest(s)