#!/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 'Test (EnvMatch ToolBox_pos -1) All (ToolBox) AnimatedMove %up -2000p \n' $xpanel printf 'Test (EnvMatch ToolBox_pos -1) All (ToolBox) AnimatedMove %up %up \n' $xpanel $ypanel printf 'Test (EnvMatch ToolBox_pos -1) All (ToolBox) Focus\n' printf 'Test (EnvMatch ToolBox_pos -1) All (ToolBox) WarpToWindow 50 50\n' printf 'Test (EnvMatch ToolBox_pos 1) All (ToolBox) AnimatedMove $[w.x]p -2000p\n' printf 'Test (EnvMatch ToolBox_pos 1) All (ToolBox) AnimatedMove +0p -2000p\n' printf 'Piperead "echo SetEnv ToolBox_pos $((${ToolBox_pos} * -1))"\n'