Hi, there's a way to distinguish right and left Control? Hidmacros show event 17() for bot control.
I'm using a little program with default hotkeys that i can't change. These hotkeys are indeed ctrl right and ctrl left.
So i'm trying without success to assign to my external numpad different macros for right and left control.
Any suggestion? Thanky you all!
Ctrl right and Ctrl left
Re: Ctrl right and Ctrl left
In LuaMacros yes, in HidMacros I don't remember (maybe not)
Petr Medek
LUAmacros author
LUAmacros author
Re: Ctrl right and Ctrl left
You can, make sure the log handler is created like this:
Then the left and right CTRL keys returns different flags 0,1 for press and release the left one, 2 and 3 for the right.
You check by just adding editing your if-statement like this:
for the left CTRL or
for the right.
Add this line to your log handler and you can sniff these out yourself:
Code: Select all
log_handler = function( button,direction,ts,flags,makecode )
You check by just adding editing your if-statement like this:
Code: Select all
if ( button == 17 and flags < 2 )
Code: Select all
elseif ( button == 13 and flags > 1 )
Add this line to your log handler and you can sniff these out yourself:
Code: Select all
print('CALLBACK :: Button ' .. button .. ', direction '..direction..', makecode: ' ..makecode.. ', flags '..flags)