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.
magnumforce2006
New User
Posts: 12
Joined: Mon Jul 21, 2025 2:45 pm

Can't get delay to work in command

Post by magnumforce2006 »

Please fill in this template when posting!
XMBC Version: v2.20.5
Installed or Portable version: Installed
Windows Version: 11
Mouse Information (brand/model): Redragon M915-RGB
Relevant Computer Information (CPU, RAM etc):
Did the problem occur after an upgrade of XMBC? (If so, from what version?): No
Did the problem occur after a Windows update/upgrade? (If so, from what version?): No
How long have you used XMBC?: 5 years
What language and keyboard layout do you use in Windows?: English

Clear description of the problem - try and include as much information as possible, including what button and mappings you are having problems with (if applicable).:

Hi there,

I'm attempting to make a shortcut that applies a tag in Foobar, then displays the popup to show the tag has been applied

the keyboard commands are as follows:

Select Track currently playing: Ctrl+Alt+Shift+K
Love the selected Track: Ctrl+Alt+Shift+L
Display the Popup: Ctrl+Shift+Num+

I have been able to successfully set up the commands to get the track selected, and loved. The problem is, if the popup displays too soon, it won't show the applied tag (the purpose is I want the popup to show when I can ensure the track has been loved). However, if I attempt to throw in a delay longer than 100 milliseconds, the popup fails to show, and I'm not sure why. And 100 milliseconds iS still too short of a time for the tag to be properly applied and shown in the popup. Here's what I've attempted, but anything longer than 100ms and the Popup fails to show.

Code: Select all

{CTRL}{ALT}{SHIFT}k{CTRL}{ALT}{SHIFT}l{WAITMS:700}{CTRL}{SHIFT}{NUM+}
Any help would be very much appreciated!
User avatar
phil
Site Admin
Posts: 8005
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

Wierd, Ive seen people use delays of multiple seconds with out problems.
I cant see anything obvious wrong with that sequence, but what "method" are you using to send the simkeys? Maybe that's relevant!
It might be worth giving 2.21 Beta a try - as 2.20.5 is over 2 years old now (I really need to get 2.21 release - its pretty much ready so shouldn't be any problem trying it - find it on the beta forum thread).

I think I still have foobar installed on my dev machine, so I can give it a try on there at some point (not tonight at its sleep time!)
EDIT: After a very quick look on my laptop, I might need assistance setting up those hotkeys in foobar... can't seem to find the options to "love" the selected track etc... Do I need any plugins?
--[ 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 »

Yeah the plugins I'm using are

Last. fm Playcount Sync
https://marc2k3.github.io/component/las ... ount-sync/

And

Foo pretty popup... Which I guess is technically crashware?
https://hydrogenaudio.org/index.php/topic,33236.0.html

And I just set the shortcuts with the default shortcut menu in Foobar.

Sorry links are annoying it won't let me post actual ones
Last edited by magnumforce2006 on Tue Jul 22, 2025 4:31 pm, edited 2 times in total.
User avatar
phil
Site Admin
Posts: 8005
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

lol, yeh, to fight the spam bots, new users need 5 posts before links are allowed. I've manually overridden that for you but I can probably work them out - that's quite a compilation of plugins! I'll try and have a look tonight and see if I can reproduce it (if I get back from work at a reasonable hour). In the meantime, can you send me a copy of your settings (use the "save profile" button and send the XML or xmbcp file to me here via PM (you should also be able to attach files now!)).
--[ 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 »

Sure, here you go
You do not have the required permissions to view the files attached to this post.
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 »

Just updated to v2.21 beta 48. Same issue.
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 »

And now that I can attach links/ pics I'll show you the setup as it is in X Mouse. Note that Mouse Button 5 works just fine to proc the Popup window. But that exact same command with a delay doesn't seem to work for Mouse button 4. Perplexing!

Image

Image
User avatar
phil
Site Admin
Posts: 8005
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

magnumforce2006 wrote: Tue Jul 22, 2025 2:48 pm Just updated to v2.21 beta 48. Same issue.
Well thats probably a good thing in a way at least, because hopefully it will mean I can reproduce and figure out whats going on before I release 2.21 :) - Another delay to release lol... Hopefully nothing too much of a problem.

Thanks for the links and pictures - that should help. I will try and get on it soon (but no promises - a bit busy at work at the moment).
--[ 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 »

No worries, thanks for looking into it.

As a test, I used a completely different function in foobar to see if it would work with the delay. This was just to play/pause the music with the hotkeys

Ctrl+Shift+Space

It also did not work, did not pause the playing music after 5 seconds, so I don't believe this is tied to the popup plugin specifically:

Image
User avatar
phil
Site Admin
Posts: 8005
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

Tats handy to know... I wonder if its a more generic thing - but Ive been tweaking and testing simkeys with delays quite a log in the recent beta's (so I was hoping that it would be OK with the latest lol)...

It would be useful in advance of me looking at the code (just in case I cant reproduce it) if you could turn on debug logging (settings -> logging & updates tab)... OK/Apply that, then repeat the experiment in foobar. After that, send me a copy of the debug log (by PM or just post it here)... Its quite verbose but if something is "breaking" the sequence it might give some clues as to what is doing that.

Especially in the beta version, there is more debug logging (as quite a lot of changes in that area of simkeys and delays, and beta's tend to have a little more logging enabled). It should reduce the time to investigate - it may even give an answer without the need to look (although if it needs changing/fixing that will still need time of course!).

Of course, once done, you can turn debug logging off (it will turn off automatically next time XMBC is launched) as it is quite verbose with that enabled!
--[ 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 »

XMouseButtonControl 07.22.2025.log
Here you go.

I used the exact same settings as my last post, just with a 2 second wait.
You do not have the required permissions to view the files attached to this post.
User avatar
phil
Site Admin
Posts: 8005
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

Thanks, but unfortunately, that looks like the normal log (with no extra debug messages)....
Did you turn on debug log in the global settings, then hit OK and APPLY before running the test?
Maybe I'm missing something, but I don't think so...?
--[ 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 »

Hmmmmm how about this one
XMouseButtonControl 07.22.2025pt2.log
You do not have the required permissions to view the files attached to this post.
User avatar
phil
Site Admin
Posts: 8005
Joined: Sun Apr 06, 2003 11:12 pm

Re: Can't get delay to work in command

Post by phil »

Yes thats better... and this particularly is of interest...

Code: Select all

CPreciseTimer::Aborted wait(2000) by wait event after 4 iterations (159.1ms) (High precision timer)
22-07-2025 20:29:09.784> Wait aborted after 0.186 seconds (wanted 2000ms).
Aha, you are using layer modifiers... and when you release the layer modifier key (and thus change layers) its aborting the simkey sequence (I think)... Which typically will be somewhere in that long delay as its most likely going to be there waiting...

So perhaps it needs to be a little cleverer!! I'll need to have a think about that - but I'm pretty sure I understand why its doing it, its more a question of how it should handle such situations! It might be as simple as NOT interrupting on layer change (if that indeed is the trigger to abort it) - but it may not be quite that simple!
--[ 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 »

I was wondering if it had to do with that. I had it up there in my one screenshot but forgot to bring it up directly.

Am I going about using modifiers wrong? So, end result is, I only want to activate this command by holding down ctrl+shift and then hitting the back button on my mouse (i.e. I don't want this to happen every time I click the back button, since i use that for web navigation etc). Am I over-complicating things by setting this all up as I have?