Skip to content

Instantly share code, notes, and snippets.

@EvansWinner
Last active October 11, 2016 14:33
Show Gist options
  • Save EvansWinner/51fc9f76f910be918f02753aedc3dc23 to your computer and use it in GitHub Desktop.
Save EvansWinner/51fc9f76f910be918f02753aedc3dc23 to your computer and use it in GitHub Desktop.
#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