Questions tagged [mouse-buttons]
11 questions
8
votes
1 answer
Remap `fn` to left mouse button on OSX
I get bad tendinitis from clicking the mouse all day.
In the past I used Karabiner to remap the fn key to simulate a left mouse button. However it doesn't work with Sierra.
I tried to accomplish this in Cocoa, and it correctly performs…

P i
- 29,020
- 36
- 159
- 267
4
votes
1 answer
PyQt5: Check if mouse is held down in enter-event
My actual application is much more complicated than this, but the example below sums up the majority of my problem. I have multiple QLabels that I've subclassed to make them clickable. The labels display 16x16 images which requires a process of…

huntrvro
- 43
- 1
- 1
- 5
1
vote
1 answer
Detect if any mouse button is being pressed, and if so, which one?
Basically, I want to query if any mouse button is being pressed and if so, which one.
The problem is that I don't use a (constantly focused) UI environment. It is meant to be able to run in the background while the OS is focused on another window. I…

Orbyfied
- 94
- 11
1
vote
1 answer
LButton Hotkey seems to prevent Send, {LButton}
I'm at a loss here. As soon as I add the LButton hotkey, the Send, {LButton} doesn't seem to work, but they show up in recently executed lines.
Env. Windows 7x64, Disabled Touchpad, AHK v1.1.31.01.
I try to emulate the Wink application (from…

Robert Ilbrink
- 7,738
- 2
- 22
- 32
1
vote
1 answer
Reading Special MouseButtons
I am interested in capturing input from the explorer mouse buttons (the special buttons on the side of mice normally used to go forward and back on web browsers).
import javafx.application.Application;
import javafx.scene.Scene;
import…

user3438312
- 11
- 4
0
votes
0 answers
How to use MOUSEBUTTONDOWN in pygame?
E.g: I am making a program that runs questions. My program is a running cat, when touching the stone, the screen shows a question.. I need when I click on the correct answer(A, B, C, D), the program will continue, the cat will run.
I've seen some…

Việt Anh Hà
- 1
- 2
0
votes
0 answers
monterey cant address two buttons on alteclansing wired mouse. is it possible to program them with a mac. no altec support
I have an AltecLansing ALBM7444 wired mouse with scroll wheel, button behind that and two side buttons. I cannot set any of the buttons, though one of the side buttons opens Spotlight, which I do not need. NO help from Altec and the Mac mouse system…

jaygamel
- 33
- 5
0
votes
1 answer
UWP: How to programmatically retrieve the behavior of Mouse X Buttons
I am developing a UWP App.
We link different behaviors for the different mouse buttons (left, right, middle) and I would like to link also some handlers for the extended buttons (e.g. when we detect a click with…

Cristiano Ghersi
- 1,944
- 1
- 20
- 46
0
votes
0 answers
How to disinguish mouse buttons in lambda expression
The following code is responsible for creating a 5 by 5 grid of buttons. Thanks to people help, i could insert lambda expretion that will pass an information 'which button from the grid is pressed' to other functions. The thing is, that i need it to…

VoidWalker
- 1
- 3
0
votes
1 answer
AHK capture key combination left mouse button with other key
I want to capture the hotkey combination left mouse button together with the key w.
Currently I have tried with no success:
Lbutton & w::doStuff()
*Lbutton & w::IfGetKeyState("w", P") doStuff()
Does anyone know how to do this ?

Ciprian Dragoe
- 340
- 2
- 14
0
votes
1 answer
In GLFW which button defines the X1 and X2 buttons?
In GLFW. which constant defines the X buttons on the mouse.
The ones on the side of generally gaming mice.
I know that SFML has sf::Mouse::XButton1 and sf::Mouse::XButton2 but which one out of the nine denotes those buttons in GLFW.

flmng0
- 387
- 1
- 2
- 14