On Win2000 you can use GetLastInputInfo. On other systems you'll need to create a global keyboard/mouse hooks. Have a look at Feb'2000 issue of Microsoft Systems Journal, C++ Q&A column. It should be in the 'Periodicals' section of your VC++ help, if it's not there, go to msdn.microsoft.com, then MSDN Magazine. Tomasz Sowinski -- http://www.shooltz.com