Layers through modifier keys in sim keystrokes (1.51vs2.0)

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.
Post Reply
Subhuman
New User
Posts: 6
Joined: Fri Sep 24, 2010 10:53 am

Layers through modifier keys in sim keystrokes (1.51vs2.0)

Post by Subhuman »

hi,
well, back in v1.51 if you map modifier key (which is used to activate layer) to a mouse button through Simulated Keystrokes, you could actually switch the layer by holding that button.

Image
Image

In v2.0 you can map layer modifier only through layers option
Image
mapped modifier keys do not switch layers

I kinda know why it is done like that, but let me explain why that feature (bug?) was handy. For example, you could modify layer through right mouse button by holding it and in the same time still be able to view context menu by releasing it. I'm so much into that little specific thing so I can not get used to v2.0 although it is so much nicer in other ways :/
Is it possible to do a layer tag (like modifier tags and extended key tags) in Simulated Keystrokes function in future releases? In that case it is not going to get underfoot.


(xp(x86))
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by phil »

Hi,

Yes it was stopped because it was causing other problems, but I like the idea of having a layer tag in sim keys. I will have to check that it actually works without breaking things but I cant see why not (I'm not in front of the code right now though).

I will see what I can.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by phil »

If I do this, I'm not sure how it would work. With sim keys in single shot (on down) mode, it might work, so when you press the button it switches.... But it will then stay in the new layer - is that what you want?

And in during mode, it could go horribly wrong (so I might ignore the tag in that mode?)

So if that will work for you, I might add the tags but leave them from the GUI tag descriptions because for most people it will cause nothing but trouble!

Your thoughts?
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by phil »

OK after a few attempts, Im confused even more!

Do you want:
1. Press right button on layer 1 switches to layer2, release switches back to layer 1 and activates context menu, leaving on layer 1 at the end?

2. Press right button on layer 1 switches to layer2, release leaves on layer 2 but shows the context menu (assuming layer 2 is set to nothing for right button)?

I think I can do both of these, with (1) using during mode and (2) using "as mouse button is pressed"
but still not convinced this is the result your after?

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by phil »

Please try beta 2.1v4

It has a new sim key tag {LAYER:<x>} where x is the layer number to switch to.
It works as described above, and I hope will do what you wanted.

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by phil »

Did you get anywhere with this? Is the beta doing what you wanted?

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Subhuman
New User
Posts: 6
Joined: Fri Sep 24, 2010 10:53 am

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by Subhuman »

hi,
thanks for going through trouble for this strange request.
-in during mode (to be working like standard layer switching option with a revert)
ahm, yeah beta doing this but it is getting stuck on modified layer from time to time. For some cases it is 100% chance to get stuck (1.51 do it through modifier tags without a problem. Though I do remember that in some other versions there was similar issue with layers). Maybe it is because the tag {LAYER:<x>} already consist the default mouse function. I assume that this is have something to do with another problem - using this tag kills scripts within sim keys. In all buttons withing a switching layer, which is crucial.
Maybe there is a way to do this within a "Layer Modifier Revert", for example make it work like {LAYER:<x>} and add something like "Layer Modifier Revert with a default key function"?
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by phil »

Can you give some examples of the sim key scripts you use, I think I know why after a {LAYER:x} it stops processing - I can change that but it would be good to get some idea of exactly what your trying to achieve, otherwise I will keep going round in circles :?.

I wanted to push out 2.1 soon but it can wait a bit longer to try and get this working the way you want :)

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Subhuman
New User
Posts: 6
Joined: Fri Sep 24, 2010 10:53 am

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by Subhuman »

wow, I installed and set up beta 2.1v4 again and sim keys actually works. It's strange, I actually remember that it wasn't working. Shame on me +_+
so the remaining problems with this are:
-it get stuck on layer 2 when I use combination (rmb[during{LAYER:2}+lmb[ESCAPE]) to minimize window (i.e. escape button in application using for minimizing).
-I can't find a way to activate window with right mouse button in application where {LAYER:x} is used. I suppose it is problem of the during mode in this version (I tried plain {LMB}, {RMB} in during mode)
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by phil »

Oh well, I've just been changing it lol :)

I hope it might fix those remaining issues - it should run the whole script now even after the layer and also it should not get stuck (with a little luck!).

Give v2.1 beta 9 a try (I've just uploaded it!)

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Subhuman
New User
Posts: 6
Joined: Fri Sep 24, 2010 10:53 am

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by Subhuman »

wow, thanks a lot! It works perfect now.
[s]Though the last problem solved only by disabling profile switching on mouse move.
Let me rephrase the heart of that problem: "Profile switching on mouse move" is not only won't working with sim keys (not only in during mode. I assume it is not a bug?) when you are pointing in inactive window, it actually gets in the way to activate windows by buttons where sim keys is used (lmb, rmb, mmb). Can you make buttons being able simply focus on windows with profiles with sim keys on it, if making work the whole script is not possible?[/s]
___
sorry, my bad (I saw the box "only send if profile's process is active"). Everything is perfect now, thanks a lot again!
User avatar
phil
Site Admin
Posts: 7670
Joined: Sun Apr 06, 2003 11:12 pm

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by phil »

I'm not sure it is what yo mean, but there is a check box in the sim keys dialog to only send if the window is active, and thus, if the mouse is over a window and the profile switches, the keys wont get sent unless the window is active.

If you un-check it, the keys will always be sent, but this might mean they go to the wrong window (it depends what keys you are trying to send as to if this is a problem or not).

Thanks,
Phil
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Subhuman
New User
Posts: 6
Joined: Fri Sep 24, 2010 10:53 am

Re: Layers through modifier keys in sim keystrokes (1.51vs2.

Post by Subhuman »

yep, I noticed that box now. Thanks
Post Reply