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

Object Fitting Keyboard Shortcuts Disfuntional

Markers not showing up after opening a saved project. Where did they go!?

Photoshop javascript: Open files in all subfolders