Code:
/window -o @sanity
/window -Do @sanity
/window -Don @sanity
/window -Don2 @sanity
/window -Don2e2mizj100000 @sanity

Any one or more of those, while any other window (eg, a channel or status window) is active, and typed either from the editbox or from a script event. The effect: @sanity becomes the active window.

Edit: In combination with -n, the window activates when called a 2nd or Nth time after having already been created. -n seems to only suppress (minimize) the window on its creation command.

Last edited by Raccoon; 06/01/18 05:25 PM. Reason: update of -n

Well. At least I won lunch.
Good philosophy, see good in bad, I like!