***UPDATE***
I was wrong. Disregard the above!! Even with the above example, if you try to /me from a @Window when the last active window was the Status Window you will get an error message that /me cannot be used in the current window (status window).

The secret isn't to check for the last active window at all. Instead, you check the active window and see if it's the type of "status".

;If the active window type is not equal to "status" then
;take the edit box of the last active window and add
;"/me says something", then press Enter.

if $window($active).type != status { /editbox -an /me says something. }


This will effectively post in the last active window unless it's a status window. smile