Last active
October 11, 2016 14:33
-
-
Save EvansWinner/51fc9f76f910be918f02753aedc3dc23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Persistent | |
;;; refresh-notes.ahk --- intermittantly refresh Lotus Notes while idle | |
;; It turns out that Notes' auto-refresh only works with your | |
;; own mailbox. It won't work with a shared inbox, like | |
;; the one we use where I work for work tickets. | |
;; Constants | |
n := 20 ; how often to send the key in seconds | |
window := "IBM Notes" | |
SetTitleMatchMode, 2 ; substring | |
delay := n * 1000 ; get miliseconds | |
loop { | |
Sleep, delay | |
if (A_TimeIdlePhysical >= delay) { | |
WinActivate, IBM Notes | |
Sleep, 1000 ; WinWaitActive | |
Send, {F9} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment