I don't know what OS this for, but in 2000 & XP there is a function called GetLastInputInfo. The function parameter is LASTINPUTINFO structure: Private Type LASTINPUTINFO cbSize As Long ' = 8 dwTime As Long End Type As far as the time you can add a windows timer (SetTimer) or add a timer control (vb) You can compare the LASTINPUTINFO.dwTime against GetTickCount() function to calculate the time elapsed. Hope this helps:) iluha