Page 1 of 1

Use 2 key strokes at same time

Posted: Mon Aug 29, 2016 4:09 pm
by lharry
I need to use "6 repeatedly while the button is down" and "9 As mouse button is pressed & when released" with {LMB}

Its possible? using commands like "6 repeatedly while the button is down" or "9 As mouse button is pressed & when released"?

Please help me

Re: Use 2 key strokes at same time

Posted: Mon Aug 29, 2016 5:58 pm
by phil
Sorry, thats not possible at the moment on one button :(

Re: Use 2 key strokes at same time

Posted: Tue Aug 30, 2016 11:26 am
by injtsvetkov
Well I tried to find some workaround using Layer modifier keys and here is what happened:
(NOTE: I have tried with RMB and Middle button and the result is the same)

In Layer 1 I assign to RMB/MB - "9 As mouse button is pressed & when released"
In Layer 2 I assign to RMB/MB - "6 repeatedly while the button is down"

When using 'Ctrl' , 'Ctrl+Shift' or 'Ctrl+Q' for Activating layer 2 here is what happens:
1-st Try:
1 - Press and hold RMB/MB --> 9
2 - Press and hold 'Ctrl' (while holding down RMB/MB) --> Activating Layer 2 but nothing is entered in the text field
3 - Release 'Ctrl' --> Back to Layer 1
4 - Release RMB/MB --> 9

2-nd Try:
1 - Press and hold 'Ctrl' --> Activating Layer 2
2 - Press and hold RMB/MB (while holding down 'Ctrl') --> nothing is entered in the text field
3 - Release 'Ctrl' --> Back to Layer 1
4 - Release RMB/MB --> 9

Looks like something is wrong with these modifiers since they activate Layer 2 but nothing is entered.

When using 'Shift' for Activating layer 2 here is what happens:
1-st Try:
1 - Press and hold RMB/MB --> 9
2 - Press and hold 'Shift' (while holding down RMB/MB) --> Activating Layer 2 but nothing is entered in the text field
3 - Release 'Shift' --> Back to Layer 1
4 - Release RMB/MB --> 9

2-nd Try:
1 - Press and hold 'Shift' --> Activating Layer 2
2 - Press and hold RMB/MB (while holding down 'Shift') --> ^^^^^^^^^ (which is the combination of Shift+6 so nothing unusual here)
3 - Release 'Shift' --> Back to Layer 1
4 - Release RMB/MB --> 9

Seems that 'Shift' is working fine but would it be possible to detect that RMB/MB is down even if it is pressed before activating Layer 2 and until RMB/MB is down to enter "^" repeatedly every time 'Shift' is held down (activating Layer 2)?

Greetings!
Iliya

Re: Use 2 key strokes at same time

Posted: Tue Aug 30, 2016 10:43 pm
by phil
If you hold down ctrl/shift/alt to activate a layer, then that's going to change the behavior of the key (eg, sending c while ctrl is held down, will do a copy!)

That's kind'a why I said it cant be done, rather than going down the layer route....

Re: Use 2 key strokes at same time

Posted: Thu Sep 01, 2016 11:31 am
by injtsvetkov
This is the firs time I tried the Modifier keys. It seems to be a great feature but the change in the key behavior is such a limitation :(. Isn't it possible to use F1...F12 or the 'Fn' key present on most of the laptops as Layer modifier?

Re: Use 2 key strokes at same time

Posted: Thu Sep 01, 2016 8:12 pm
by phil
I think FN is hard wired in the keyboard itself - so no to that one, but the Function keys should be OK!

Re: Use 2 key strokes at same time

Posted: Thu Sep 01, 2016 9:45 pm
by injtsvetkov
Oh crap, I was hoping for the Fn key as it is conveniently positioned in the lower left corner :( but the F keys would still be great for not altering the behavior of the sent keys!

Re: Use 2 key strokes at same time

Posted: Thu Sep 01, 2016 10:00 pm
by phil
Well, F-keys should work already - are you suggesting they don't work or have you just not tried?

Re: Use 2 key strokes at same time

Posted: Fri Sep 02, 2016 9:17 pm
by injtsvetkov
OMG :D they work perfectly, I just haven't realized that the first field can be left to 'None' and use any single key as Layer modifier! Maybe you should add some note for that option coz I'm sure there would be more people like me to think that some button must be selected in the first field in order to use the Layer modifier.

I see now that I have misunderstood a little the question of that user but anyway with F keys as Layer modifiers such kind of functionality could be achieved if XMBC recognizes that the mouse button is already down when activating the second layer.

Thank you!
Iliya