layer modifier keys: blocking the original key

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Music8
New User
Posts: 2
Joined: Sun Oct 13, 2024 10:39 am

layer modifier keys: blocking the original key

Post by Music8 »

XMBC Version: 2.20.5
Installed or Portable version: Portable

Hi, first of all, thank you for creating such a wonderful tool!

However, I have one question that I don't quite understand yet.

In your manual, you say:
"Bear in mind that any key will still be sent to the rest of the system, so,
for example, if you choose to use the control (CTRL) key, when you
press a mouse button, the control key may cause the active application
to behave differently!"

In theory, this means that with modifier keys this is not possible in Paint for example CTRL+S -> SHIFT (Modifier Key) + Mouse Button 4 -> {CTRL}s)" because SHIFT remains activated and Paint therefore thinks that SHIFT+CTRL+S is being pressed.

After playing around a bit I found this method that works:
Mouse Button 4 -> {RELEASE}{SHIFT}{CTRL}s

Paint thinks now I press CTRL+S.

But I'm not sure if this is the correct syntax for it, or if
{RELEASE}{SHIFT}{PRESS}{CTRL}s{RELEASE}{CTRL}s
would be better, or if it's the same thing?

Many thanks and kind regards
User avatar
phil
Site Admin
Posts: 7877
Joined: Sun Apr 06, 2003 11:12 pm

Re: layer modifier keys: blocking the original key

Post by phil »

I think the first option, with {release}{shift}{ctrl}s is the best bet. You don't need to press and release control and S as that is done automatically (by default). If you use {press} you must use {release} otherwise the key could get stuck down, but you if you don't use {press} it will automatically "unwind" it.

Of course {release}shift works and does not need "unwinding" because who cares if it is released more than once (physically releasing the shift key will "release" it again but as the system does not think it is down by then, nothing happens!

So I think your first solution is the best!

NOTE: The {release} option was not there when that part of the manual was written. I guess I should update the manual with this tip as generally it seems to work quite well!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
Music8
New User
Posts: 2
Joined: Sun Oct 13, 2024 10:39 am

Re: layer modifier keys: blocking the original key

Post by Music8 »

Ah, I see. Thank you for your answer! In that case, I will use the first option in the future.
phil wrote: Mon Oct 14, 2024 7:52 pm NOTE: The {release} option was not there when that part of the manual was written. I guess I should update the manual with this tip as generally it seems to work quite well!
Yes, the {release} feature works wonders! I'm currently using six layers for an application that I can use thanks to {release} (and of course your amazing work) :)