Vncscript is a program that I've written to allow scripting of a vnc session. It allows a program to automate mouse motion on a vnc server. (Sorry, but it doesn't do keyboard input right now.) This code was originally based on x2vnc, which can be found at http://www.hubbe.net/~hubbe/x2vnc.html That code was based on the original vnc code, which can be found at http://www.uk.research.att.com/vnc/ Isn't the GPL wonderful? The command to execute is "./vncscript :". Vncscript uses a simple stack-based language to control the mouse. The syntax follows. Stack based means that first the arguments are placed onto the stack, then a command acts on them. Commands are described as follows: command arg1 and arg2 are taken from the stack, and used as arguments for the command. Integers are placed directly on the stack. Otherwise, the argument is a command, and unknown commands trigger an error. Command List ============ move Moves to the coordinate relative to the left and top of the screen. If the numbers are negative, the coordinates are relative to the right or bottom of the screen instead. rel Moves the mouse relative to the current position.