All pastes #431504 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-09 18:38 UTC
rendered paste body
#!/bin/bash
xmouse=$1
ymouse=$2
wpanel=$3
hpanel=$4

xmaxright=$(echo 2560"-"$wpanel | bc)
ymaxdown=$(echo 1024"-"$hpanel | bc)

if [ "$1" -le "$xmaxright" ];
        then xpanel=$1
else xpanel=$xmaxright
fi

if [ "$2" -le "$ymaxdown" ];
        then ypanel=$2
else ypanel=$ymaxdown
fi

printf '+ I Test (EnvMatch ToolBox_pos -1) All (ToolBox) AnimatedMove %up -2000p \n' $xpanel
printf '+ I Test (EnvMatch ToolBox_pos -1) All (ToolBox) AnimatedMove %up %up \n' $xpanel $ypanel
printf '+ I Test (EnvMatch ToolBox_pos -1) All (ToolBox) Focus\n'
printf '+ I Test (EnvMatch ToolBox_pos -1) All (ToolBox) WarpToWindow 50 50\n'
printf '+ I Test (EnvMatch ToolBox_pos 1) All (ToolBox) AnimatedMove $[w.x]p -2000p\n'
printf '+ I Test (EnvMatch ToolBox_pos 1) All (ToolBox) AnimatedMove +0p -2000p\n'
printf '+ I Piperead "echo SetEnv ToolBox_pos $((${ToolBox_pos} * -1))"\n'