I'm trying to run a macro once mouse movement and any activity on the computer has ceased for about x seconds. Any ideas?

Thanks in advance.