Hi Wil
Just thought you might be interested: I found out this API call for watching the mouse move thanks to Anatoliy at
http://www.news2news.com/vfp.
DECLARE INTEGER GetCursorPos IN user32 STRING @lpPoint
But again you need to check for it inside a loop. And the way to stop the 100% cpu usage inside the loop is to insert your suggested Sleep() function.
Thanks again
Jos
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.