On Thu, Feb 07, 2008 at 05:13:39PM -0500, Michaël Cadilhac wrote: <snip> > The simplest way would probably be to assign a key to "The current > position of the cursor is point A", then upon re-hit "The curr.. point > B" and print the result (|A-B|) somewhere. > > Any idea ? TIA!
As mentioned on this list previously there is a set of tools called xautomation, one of those tools is the xmousepos tool which, unsurprisingly, gets and sets the location of the mouse cursor. That should give you what you need for your 'simplest' case. I don't know about other distributions but debian has it packaged as 'xautomation' if yours doesn't the homepage is http://hoopajoo.net/projects/xautomation.html . -Etan P.S. I'm curious why you need to measure the distance between two points on your screen with such regularity.
