>Based on Robert's suggestion, I see I need to enhance it. It appears to track all mouse activity in Windows. It does serve well if the user simply walks away from the machine. But does not close the form if they are doing something in another application. I will look into an API that depends on a HWND handle to VFP.
Thanks, Greg. I remember the same question was discussed a while ago on a Russian website. Do you want me to try to find the relevant discussion there?
If it's not broken, fix it until it is.
My Blog