Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What do you guys like to use for mouse mapping?
#6
@bplus Verbose? What bush whacking, butt munching, monkey thumping thing of a rattlesnake from hell are you bad mouthing, blabbering aimlessly, and yammering about now? Oh, now I get it. Big Grin 

But in my defense, I included a complete mouse routine, centering function, and a text description of the process.... So let's whittle that **** out and we are left with...

Code: (Select All)
a$ = "[F1] Help  [F5] Save  [Enter] Laugh at Steve  [Esc] Quit"
f$ = Space$(_Width): Mid$(f$, _Width \ 2 - Len(a$) \ 2 + 1) = a$
Locate _Height, 1: Print f$;
temp$ = " "
For i = 1 To Len(f$) ' Map mouse hot zones.
    x$ = Mid$(f$, i, 1)
    If hot Then
        If Left$(LTrim$(Mid$(f$, i) + "["), 1) = "[" Then
            hot = 1 - hot: temp$ = " "
        End If
    End If
    If x$ <> Chr$(32) And hot = 0 Then
        hot = 1 - hot: j = j + 1: temp$ = Chr$(96 + j)
    End If
    map$ = map$ + temp$
Next
Do
    _Limit 30
    MyMouse_and_Keyboard lb, my, mx
    If lb And my = _Height Then
        Select Case Asc(Mid$(map$, mx, 1)) - 96
            Case 1: Print "You selected: Help"
            Case 2: Print "You selected: Save"
            Case 3: Print "You selected: Laugh at Steve. Great choice!"
            Case 4: Print "You selected: Quit. See you later!": End
        End Select
    End If
Loop
Sub MyMouse_and_Keyboard (lb, my, mx)
    While _MouseInput: Wend
    my = _MouseY: mx = _MouseX: lb = _MouseButton(1)
    If lb Then _Delay .25
End Sub

So see? Mine's much shorter than anyone's here!!!!!!! (OH SHUT UP, STEVE!)

Pete
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
RE: What do you guys like to use for mouse mapping? - by Pete - 12-21-2024, 06:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Polynomial Regression + Mouse Interpolation ' QB64-PE Example ajax12 11 1,210 10-30-2025, 08:23 PM
Last Post: Pete
  Aloha from Maui guys. Cobalt 18 2,971 01-20-2025, 07:33 PM
Last Post: Pete
  Hey guys, riddle me this... Pete 8 1,331 01-01-2025, 02:23 AM
Last Post: Pete
  Clearing the mouse and keyboard buffers Donald Foster 1 599 03-09-2024, 07:47 AM
Last Post: a740g
  IDE' mouse problem with 3.4.1 on macOS Fifi 8 1,872 01-13-2023, 01:06 PM
Last Post: Fifi

Forum Jump:


Users browsing this thread: 1 Guest(s)