I am using Ubuntu 12.04. For one of my applications I require to control the mouse in software using a script.
I understand that the mouse device is
this is not trough the file you mentioned, but its way quicker to use this tool instead of decypering the dump of that file. And it does everything you want in bash.
xdotool does the trick in my terminal.
this is the package site for ubuntu. you probably can install it trough
# apt-get install xdotool
I could just emerge it on gentoo without adding any repositories.
the tool works fairly simple:
#! /bin/bash # move the mouse x y xdotool mousemove 1800 500 # left click xdotool click 1 # right click xdotool click 3