It might be possible to do something with $width but actually, there is a better and easier way to handle this:
Code:
alias awayscan {
  set %awayscan #$1
  if (!$window(@aws)) window -lCkM -t50,50 @aws 50 50 700 376 Verdana 11
  aline @aws Scanning for away users in #$1
  aline @aws Nick $chr(9) Address
  who #$1
}

raw 352:*: {
  if (%awayscan == $2) {
    haltdef
    if (G isin $7) aline @aws $6 $chr(9) $+($3,@,$4)
  }
}

raw 315:*: {
  if (%awayscan == $2) { 
    haltdef
    unset %awayscan
  }
}


#mircscripting @ irc.swiftirc.net == the best mIRC help channel