This version seems to work OK so far. Non-IdleEvent.kmmacros (3.6 KB)
For more information, see the wiki Searching the Forum for Answers section.