Can't get delay to work in command

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.
User avatar
phil
Site Admin
Posts: 8036
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

Not wrong per say, just not something I had considered... And when XMBC changes layers, it aborts running simkeys (all of them, no questions asked) - and that's the problem here... its aborting it before it has finished!

The question to me is can I just change that so it does not abort, or will that cause more harm than good. In previous versions, it could only run one simkey sequence at a time (no matter which button etc.) that's changed in 2.21 beta where it can run one per button at a time.

But that still leaves the problem, when layers change should it abort anything already sent or not. If its a repeating, sticky or during (method3) simkey, I think it needs to stop it (as the layer goes away, it looses context and the repeat should no longer be repeating, as the layer is no longer active. But I don't think it needs to abort non-repeating/button held down simkeys as they have already been sent, the layer going away does not have any impact on them, do why should it abort them! Sounds sensible in theory - but I need to re-study the code to make sure I'm not missing anything.

It does beg the question, if you had setup the simkey for "on button released" (method 2) and the layer changes before the button is released, what should it do (I guess nothing because the button will be released on a different layer, thus not the same action!)... I think thats OK (as in that will be what it does currently anyway. Its only going to be an issue for method 1 (and possibly method 9 but that's probably safer to leave as is too).
--[ 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 DDR5,
nVidia RTX 5070TI
magnumforce2006
New User
Posts: 12
Joined: Mon Jul 21, 2025 2:45 pm

Re: Can't get delay to work in command

Post by magnumforce2006 »

Ok, well if you'd like me to try some settings or something to help in testing let me know.
User avatar
phil
Site Admin
Posts: 8036
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

I don't think there is anything to try - at least, not before I make some changes...
Once I do make some changes, I'll let you know and you can give that a try!
--[ 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 DDR5,
nVidia RTX 5070TI
magnumforce2006
New User
Posts: 12
Joined: Mon Jul 21, 2025 2:45 pm

Re: Can't get delay to work in command

Post by magnumforce2006 »

Sounds good!
User avatar
phil
Site Admin
Posts: 8036
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

OK give 2.21 Beta 49 a try - I just built it and I hope it will fix it.

It should work, but one thing to note, since your layer key is CTRL+SHIFT, that means any keys sent (while the layer modifier key is still held down) will also have ctrl and shift applied. This probable wont matter seeing as all your foobar hotkeys keys also include ctrl+shift (+alt), but you can actually circumvent this if you wanted to by putting {release}{ctrl}{release}{shift} at the beginning.

That would virtually release the keys (it wont release the layer until you physically release the keys, but it will prevent them from interfering with the rest of the macro.

You probably don't need to worry about that in this case, but just to make you aware :).

If it does not work, another debug log would be useful!
--[ 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 DDR5,
nVidia RTX 5070TI
magnumforce2006
New User
Posts: 12
Joined: Mon Jul 21, 2025 2:45 pm

Re: Can't get delay to work in command

Post by magnumforce2006 »

Updated, re-ran. It works! Thank you!
User avatar
phil
Site Admin
Posts: 8036
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

Perfect - that's what I like to hear :)
--[ 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 DDR5,
nVidia RTX 5070TI