Page 1 of 1

Trigger condition CTRL+LeftClick,simulate keys

Posted: Sat Jan 16, 2021 2:28 pm
by wienne
Press the two buttons "CTRL" and "left mouse button" to simulate the keys.

instead of just a left mouse button.

Could you tell me how this CTRL key is configured?

thank!

Re: Trigger condition CTRL+LeftClick,simulate keys

Posted: Sat Jan 16, 2021 2:53 pm
by phil
You can do this using layers and Layer Modifier Keys.
Set your simkeys on Layer 2 left click.
Turn ON layer modifer keys (settings -> layer modifier keys tab)
Set Layer 2 modifier to CTRL.

Now when you hold CTRL, layer 2 will be active and left click will send the sim keys.

NOTE: CTRL is not a great choice of modifier, because it WILL impact the keys being sent - eg. if you are sending 'C' then it will copy to clipboard because you are holding CTRL, you will actually be sending CTRL+C

Re: Trigger condition CTRL+LeftClick,simulate keys

Posted: Sat Jan 16, 2021 3:44 pm
by wienne
Thank you for your reply.

Enabling and setting up "modifer Keys" has enabled the conversion from Layer 1 to Layer2.

On your advice, I chose Shift-Alt.

However, when I set the {DEL} command to "Left Button" of Layer2, the command was not executed.

Is there anything else I didn't turn on?

Re: Trigger condition CTRL+LeftClick,simulate keys

Posted: Tue Jan 19, 2021 11:49 pm
by phil
I dont think there is anything else to consider....

In what application are you trying this? Its quite possible that SHIFT+DEL behaves differently too...
Try something simple like a normal letter key and in notepad.... Obv with shift+a you should see A (assuming caps lock is off).

Re: Trigger condition CTRL+LeftClick,simulate keys

Posted: Mon Feb 08, 2021 6:29 pm
by cableghost
I may be missing something about modifier and Layers... I wish to press/hold the Ctrl key and while clicking the mouse-right button open an Explorer Window. I can visualize X-Mouse identifying that I'm pressing the Modifier key (Ctrl in this case), the layer changing, and the clicking of my mouse right button. However, a window doesn't open.

Re: Trigger condition CTRL+LeftClick,simulate keys

Posted: Mon Feb 08, 2021 7:56 pm
by phil
How are you telling XMBC to open the window? And don't forget, when CTRL is pressed, explorer may well be handling any clicks differently - simply because CTRL is pressed.

Layer modifier keys do not get blocked so whatever you hold down will impact potential operations in the target window.

Re: Trigger condition CTRL+LeftClick,simulate keys

Posted: Mon Feb 08, 2021 9:10 pm
by cableghost
Ah, ok. I guess its best to use app-specific Layers.

Re: Trigger condition CTRL+LeftClick,simulate keys

Posted: Mon Feb 08, 2021 10:35 pm
by phil
It really depends on what your intent is. There are often many ways to crack a nut, but some ways are better than others!

Of course, the problem may not be related to the modifier key at all - it could be another error, but as your visualization has been kept rather private to yourself (you haven't really given me any idea of what you have actually tried in XMBC or where you stumbled), its rather difficult for me to guess if there is a configuration error :).

The first thing, is can you could try to find another key that is less conflicting - unfortunately there are few keys on the keyboard that don't have some use somewhere so its always tricky to find alternatives. You can in some cases use global hotkeys to trigger the layer for a second or so, or you can use button chording, or application specific profiles - it all depends on what your trying to achieve!

In theory, layer modifier keys could block the key getting sent on to Windows, but that would have the rather problematic side effect of preventing that key from working as it normally would -a nd therefore right now, that is not an option offered by XMBC.