ZBrushCentral

Get Window ID for currently selected tool?

I have been frustrated trying to script some things that involve switching between different tools. The Item Info of tools can change or be the same as another tool. Same with their names. But I did notice that the Window ID for individual tools SEEMS to be unchanging. I figure I can use [IClick,(window id of a particular tool)] to switch to it. But how do I get the ID for the active tool so I can switch back to it after loading a tool for example?

thanks in advance!

Nevermind, I got it done with [ToolGetActiveIndex] and [ToolSelect]