
Change alpha on mouseover:

SkinBoxMMTestOnMouseOver !SkinBoxMMTestAlpha ^@in^ 100%
SkinBoxMMTestOnMouseOut !SkinBoxMMTestAlpha ^@in^ 33%

(works for single- or multi-window builds)



Use one box to cache images for mouseovers for other boxes:

*SkinBoxMMTest cache 0 0 0 0 #h
cacheBitmap $img$image.png

*SkinBoxMMTest one 0 0 16 16 #t
oneOnMouseOver !SkinBoxMMTestExec cache !SkinBoxMMTestBitmap one :^@#c^@ik^@#c^ 0 16 16 16
oneOnMouseOut !SkinBoxMMTestExec cache !SkinBoxMMTestBitmap one :^@#c^@ik^@#c^ 0 0 16 16
oneOnCreate !SkinBoxMMTestExec cache !SkinBoxMMTestBitmap one :^@#c^@ik^@#c^ 0 0 16 16

*SkinBoxMMTest two 16 0 16 16 #t
twoOnMouseOver !SkinBoxMMTestExec cache !SkinBoxMMTestBitmap one :^@#c^@ik^@#c^ 16 16 16 16
twoOnMouseOut !SkinBoxMMTestExec cache !SkinBoxMMTestBitmap one :^@#c^@ik^@#c^ 16 0 16 16
twoOnCreate !SkinBoxMMTestExec cache !SkinBoxMMTestBitmap one :^@#c^@ik^@#c^ 16 0 16 16
;                                                 :   ^  @ik  ^

The ^@#c^@ik^@#c^ gets changed by the action trigger to ^@ik^, then by !SkinBoxMMTestExec to the bitmap handle.



Display a picture of the current "mini" desktop from a horizontal RabidVWM 1.0:

deskwidth $VWMWidth/VWMDesksX$
deskheight $VWMHeight/VWMDesksY$
!VWMExec !SkinBoxMMTestBitmap one :^@ib^ ^@#d^(^@cd^-1)*$deskwidth$^@#d^ 0 $deskwidth$ $deskheight$
;                           bitmap    $ deskno   *  width      $   0    width       height



If you want nice, easy to remember names instead of the ^@...^, you can define $vars$ for them:
WindowPosX ^@ix^

!SkinBoxMMTestmmtestexec one !alert $WindowPosX$



Drag a box using the right mouse button:

SkinBoxMMTestOnRButtonDown !SkinBoxMMTestAction ^@in^ mousemove !SkinBoxMMTestMove ^@in^ ^@#c^@#d^@#c^^@#c^@mxs^@#c^-^@mx^^@#c^@#d^@#c^ ^@#c^@#d^@#c^^@#c^@mys^@#c^-^@my^^@#c^@#d^@#c^
SkinBoxMMTestOnRButtonUp !SkinBoxMMTestAction ^@in^ mousemove

This is a bit sloppy, but mostly works (only on primary monitor), and will work the same with single- or multi-window builds.

This: ^@#c^@#d^@#c^^@#c^@mxs^@#c^-^@mx^^@#c^@#d^@#c^
In OnRButtonDown becomes this: ^@#d^^@mxs^-32^@#d^
(if the mouse is 32 pixels from the left edge of the box when the button is pressed)
Then, in OnMouseMove (set by !SkinBoxMMTestAction) becomes: $200-32/2$
(if the mouse is 200 pixels from the left edge of the screen while being dragged)
And when !SkinBoxMMTestMove is executed by LiteStep, that becomes: 184
which !SkinBoxMMTestMove can understand.

The only problem with this is when the calculated coordinate comes out being negative.

Another idea might be to use something like:
SkinBoxMMTestOnRButtonUp !execute [!SkinBoxMMTestAction ^@in^ mousemove][!textreplace "step.rc" "^@in^X .*" "^@in^X ^@ix^"][!textreplace "step.rc" "^@in^Y .*" "^@in^Y ^@iy^"]
to save the new position to step.rc (but don't expect it to be res. independent)
(For single-window builds, use "SkinBoxMMTest" for the two ^@in^ in !textreplace)



