Skip to main content

Thread: mapping the mouse cursor


if put in wrong forum, sorry.

phd student in biology, , have videos of lizard watch. need keep continual track of lizards through time walk around 2d arena.

solution have hover mouse on lizard in video, , follow cursor.

looking way record x , y coordinates of mouse time keeper, possibly like:

x y seconds
1 15 0
1 16 0.01
2 17 0.02


etc.

know way can this?

code:
sudo apt-get install xautomation
mousepoll.sh
code:
#!/bin/bash while :; sleep 1 xmousepos >> mousepos.txt done exit
output in form of
x y x_relativetocurrentwindow y_relativetocurrentwindow

example:
code:
tye@t:~$ xmousepos 249 831 249 805
it update once every second. make more or less often, change value of 'sleep #'


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] mapping the mouse cursor


Ubuntu

Comments

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?