I want to use "Z" as my mouse click button (holding "Z" means holding mouse click) but I want it only if there are no key modifies, so Ctrl+Z is passed as-is, but "Z" alone acts as mouse click.
Background: I'm currently learning digital drawing. Since I don't have drawing tablet, I have no choice other than using mouse for movement. I'm using Krita for this and sadly adding keyboard shortcut to "Activate" it in Krita setting doesn't work (because it never meant for that). A solution would be using AutoHotkey which works in Windows like this:
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
#IfWinActive ahk_exe krita.exe z:: 	Click down 	Keywait z 	Click up 	return #IfWinActive
If anyone knows please let me know below or hit me up in UnrealSoftware Discord server at #off-topic channel, thanks.
EDIT: I've solved it. I had to write C++ code that interacts with X directly. See https://gist.github.com/MikuAuahDark/3e1a5b3946d8700e1a26769cc0f8e554
edited 1×, last 08.09.20 04:55:44 am