Posted by member 7223 on 2003-07-04 09:42:43 link

I've done some things this kind when I began to play with RabidVWM. At the begining, RabidVWM was buggy in a fine way:
VWMOnMoveWindow !VarSet WinTitle "^@wt^"
...used to be called on every focus change. Now, it has been fixed and you couldn't use it anymore for knowing the active window.

But you still could use a timer and VWMExec to ALWAYS know everything you want about the active window:
*Timer ActiveWnd #sl 250 '!VWMExec !VarSet WinHandle ^@wh^'

Then, you can do things like:
!Exec !VWMExec !One "^@wc (#h %{WinHandle})^" "^@wt (#h %{WinHandle})^"