Trigger script when changing tabs?
Posted: 18 Jul 2020 18:01
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!
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!