nope, it doesn't work

I did all the above
then I started mirc

I have an autoconnect and autojoin script:
Code:
on *:start: {
  window -x "Status Window"
  showmirc -m
  /s srv.d.com -j #c2,#c3
  /s -m irc.r.net -j #c1 
}


then I click F8 in order to hide the unwanted windows:
Code:
alias F8 {
  scon -a toggletabs %hidden
  if (%hidden == $null) set %hidden 1
  else unset %hidden
}
alias -l toggletabs {
  set %x window $iif($0,-w,-h)
  set %y 1
  %x "Status Window"
  while $chan(%y) {
    if $istok(#c1 #c2 #c3,$chan(%y),32) {
      %x $chan(%y)
    }
    inc %y
  }

}[/code]

then when I receive a new prv, the window is not maximized, its in middle size

when I hit F8 again in order to restore the hidden windows, those windows are not maximized, they are in middle size

is there something wrong with my scripts?
any help please?