Treebar focus color fix

Added by Mr. BS over 1 year ago

Closing a background window (not active one) by right click in treebar makes 'color focus' goes to next window instead to back to active window, a little annoying because soon or later instinctively you click the channel item thinking it has no focus, then focus goes to other window.

What the script does is just send shift+tab hotkey on closing, it makes AdiIRC restores color focus to active window.

Probably useful for OCD users only :>

; Treebar focus color fix

on *:close:*: sendkey +{tab}
alias -l sendkey {
  var %name sk $+ $ticks
  .comopen %name WScript.Shell
  .comclose %name $com(%name,SendKeys,3,bstr,$1-)
Default The fix