Trigger script when changing tabs?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
fizzybiz
Posts: 19
Joined: 18 Jul 2020 10:05

Trigger script when changing tabs?

Post by fizzybiz »

New to XY, and had a "good" look through help and online (for relative values of "good"), so this might not be supported.

When the user changes tabs, by whatever means (clicking the tab or using keyboard), I'd like to trigger a script which does stuff based on what the new tab is.

So far, I've used AutoHotkey to look for "Ctrl-Tab" pressed in XYplorer, then send a keypress to XY which is a hotkey for a user UDC script. A round-about way of doing it, but it works so far.

I'm about to do the same for the mouse. Apparently there's a "control" in the XY UI called "ThunderRT6PictureBoxDC60", which represents the tab bar. So basically when the user clicks anywhere in the tab bar, AutoHotkey can send that UDC hotkey to XYplorer to trigger that script. However more work is needed to make sure the user changes tabs with the mouse (i.e. ignores if it's a click in the currently active tab). Can be done, but this is getting convoluted.

Soooo, before I keep going, I thought I'd double-check to make sure there's really no direct way to trigger XY scripts based on such events as changing tabs?

Thanks!

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Trigger script when changing tabs?

Post by highend »

Nope, it isn't.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 67264
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Trigger script when changing tabs?

Post by admin »

There is room for this in the future of CEA (Custom Event Actions)...

Post Reply