Last active
April 29, 2019 14:58
-
-
Save Saibot942/037b5c5f6a8ca6f1b1bd747349aa1488 to your computer and use it in GitHub Desktop.
Brings Outlook reminders on top of other windows and add a traytip reminder
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
; ======================================================================== | |
; Brings Outlook reminders on top of other windows | |
; ------------------------------------------------------------------------ | |
; Version: 2019.04.29 | |
; Updated: Toby Garcia | |
; Source: https://gist.github.com/Saibot942/ | |
; | |
; Based on: v1.0.0 | |
; Copyright (c) 2018 Kenneth Bernhard Kjeldsen | |
; Homepage: https://github.com/kbkjeldsen/outlook-reminders-on-top | |
; | |
; Original source of the script: https://stackoverflow.com/a/35154133 | |
; ======================================================================== | |
; | |
; Display an info message stating that the script is active and looking for Outlook reminders | |
TrayTip AutoHotKey Script, Started looking for Outlook reminder windows to put on top, , 16 | |
SetTitleMatchMode 2 ; Match any occurence of the title pattern in the window title | |
loop { ; Begin an infinite loop looking for any Outlook reminder windows taht may occur | |
WinWait, Reminder(s) ; Wait for a reminder window to occur | |
WinSet, AlwaysOnTop, on, Reminder(s) ; Bring the reminder window on top | |
WinRestore, Reminder(s) ; Restore default size of the reinder window (if minimized or maximized) | |
TrayTip Outlook Reminder, You have an active outlook reminder, , 16 ; Display a message | |
WinWaitClose, Reminder(s), ,30 ; Wait for the reminder window to be closed or 30 seconds before the next iteration of the loop | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment