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?
mousepoll.shcode:sudo apt-get install xautomation
output in form ofcode:#!/bin/bash while :; sleep 1 xmousepos >> mousepos.txt done exit
x y x_relativetocurrentwindow y_relativetocurrentwindow
example:
it update once every second. make more or less often, change value of 'sleep #'code:tye@t:~$ xmousepos 249 831 249 805
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] mapping the mouse cursor
Ubuntu
Comments
Post a Comment