When there keyboard and mouse activities within notepad, the script never execute. Which is how I wanted. The only problem is , I am expecting the script to execute every 10 minutes of inactivity, but it doesn't. Any work around this? I appreciate your help.