Posted by member 7223 on 2003-11-10 11:45:57 link

Yes, this is what I've been talking about :)

You'll need this to do that:
- RabidVWM
- MZScript
- WndMan (or something similar to move your windows)

Then, you could try something like:
; call !WindowMovingTest with the "handle" of the window as argument
VWMOnMoveWindow !WindowMovingTest ^@ch^

with !WindowMovingTest:
*script bang !WindowMovingTest
; find window position (x, y)
*script exec !vwmexec !varset x ^@wxs(#h %{\1})^
*script exec !vwmexec !varset y ^@wys(#h %{\1})^
; now, we just have to test if x &lt %{borderleft}
; and move the window if needed
*script exec !ifeval ("%{x}" &lt "%{borderleft}") |wndmove %active% %{borderleft} %{y}
; make more tests if you like
*script ~bang

*script start !varset borderleft 50