Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotkeys e.g. 'Left+Right' are not completely disabled even when set to 'None' via 'Custom Hotkey' options #37

Open
wandersick opened this issue Sep 3, 2019 · 0 comments
Assignees
Labels

Comments

@wandersick
Copy link
Owner

wandersick commented Sep 3, 2019

This issue has been raised by wandersick because of a comment from Vincent C. on the blog post of AeroZoom:

Hi wandersick,

First, AeroZoom has been a total lifesaver for me, I seriously can't thank you enough for this software. I've been considering taking a crack at magnification software myself as a visually impaired developer.

Anyway, I think my biggest issue with AeroZoom is that even when I use the custom hotkeys settings for Left+Right to set all hotkey functions to [none], I am still unable to utilize Left+Right simultaneously. As in pressing/holding Left or Right works normally, but then pressing the other mouse button has no effect.
To recreate this specifically, in any browser or even the desktop etc, while AeroZoom is open, clicking and dragging Left, then pressing Right while still holding Left does not open the dropdown menu. Performing the same action while AeroZoom is closed will open the menu.
Disabling all hotkeys does resolve this, but then I am unable to use the Ctrl+wheel and Ctrl+middle zooming functionality which are the lifesaving functionality I need from this beautiful application.
I'm using Windows 10, testing on multiple mice and changed as many settings as i could within AeroZoom and other applications to no avail.

Usually this is not a huge issue, but it can be quite tedious to work around, and for some games I play it can be very inconvenient.

I hope you can help, I'm definitely donating to you, you deserve it.

Thanks a million, you've honestly saved my back, hobbies, and career.
Vincent C

Thanks Vincent C. for the suggestion.

The above issue is caused by AeroZoom not completely disabling the hotkeys even when they are set to None as described above.

To solve this, one way is to leverage the off parameter of the Hotkey command from AutoHotkey to completely disable hotkeys when they should be disabled, so that the hotkeys can be freed and be used for other purposes even when AeroZoom is running with its remaining hotkeys enabled.

An implementation for consideration is as below:

; Press right mouse button while holding left mouse button
~LButton & RButton::
	goto, disableHotkey
	return

; Press left mouse button while holding right mouse button
~RButton & LButton::
	goto, enableHotkey
	return

disableHotkey:
MsgBox Disabling Left and Right mouse buttons completely.
Hotkey, ~LButton & RButton, off
return

enableHotkey:
MsgBox Enabling Left and Right mouse buttons.
Hotkey, ~LButton & RButton, on
return

Reference:

Hotkey - Creates, modifies, enables, or disables a hotkey while the script is running.

@wandersick wandersick added the Bug label Sep 3, 2019
@wandersick wandersick self-assigned this Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant