I'll start from the very beginning. My main tool for creating hotkeys is luamacro, but it unfortunately does not support mouse clicks.
I needed a third action to be triggered by pressing and holding two buttons on a hid-compatible keyboard. The buttons themselves had to remain functional.
An example is
pressing button [ I got "["
pressing button ] I got "]"
when i press (and hold) buttons [ and ] simultaneously luamacro presses (and holds) button f7
for f7 in autohotkey, I created the necessary shortcut using the right mouse button (alt + shift + right button). And it is important for me that it was not just a click, but a press and hold. But unfortunately the combination I need, stops working when I add the shift key to it. If the combination uses only alt + right mouse button, then everything works, but when I add a shift to the combination, the pressed keys simply do not release.
I'm new to autohotkey and unfortunately I don't know how to write a script with modifier keys correctly, so my scripts look something like this
(this one does work properly and calls brush controls in photoshop properly)
Code: Select all
F7::
KeyWait F7, D
Sendevent, {alt down}{Rbutton Down}
KeyWait F7, U
Sendevent, {alt up}{Rbutton Up}
return
Code: Select all
F7::
KeyWait F7, D
Sendevent, {shift down}{alt down}{Rbutton Down}
KeyWait F7, U
Sendevent, {shift up}{alt up}{Rbutton Up}
return
it doesn't matter to me whether luamacro will be used in the process of implementing this solution.
If you can refuse it, I will gladly do it.
but since it is quite difficult for me to understand even the basic functionality of autohotkey, it seems that it will be difficult to write a script that will do exactly what I need in autohotkey.
but if it is possible to make buttons "[" and "]" work, and by pressing and holding them - they press and hold the alt-shift-right mouse button combination, and release it correctly, then I will be happy with such a solution