If you want a little control over when the function is active and when it isn't, look at Toggler Macro (v9.2).
For more information, see the wiki Searching the Forum for Answers section.