Help programming script which detects open reminder window

T

Tim P

Hi

I've been trying to find a way to persuade Outlook to play its reminder
alarm every few minutes until it is dismissed (if I'm not at my desk when it
goes off the first time I sometimes don't see the alarm behind all the other
windows and then I'm late for my appointment!).

I found the post below via Google, which does what I want, but I don't
understand how to use AutoIt to create the script and then what to do with
it. I've never done any programming of this nature, so could really use some
step-by-step guidance!

Can anyone shed any light on this or an alternative way to do what I want?

Thanks

Google post: Outlook Reminder Sound Repeat Until Dismissed

I've tried a number of possible solutions that involve hooking onto
the Outlook Application.Reminder event, but they all had some
undesirable side-effects. The solution I finally came up with is most
definitely a kluge, but it works just fine.

Using AutoIt (http://www.hiddensoft.com/auto­it3/) (I'm certain you can
do the same thing using WSH VBScript), I wrote the following script:


Opt("WinTitleMatchMode", 4)
While 1
$handle = WinGetHandle("classname=#32770­", "Click Snooze to be
reminded again")
If Not @error Then
SoundPlay ( "E:\Data\Exchange\Waves\Big Ben Single Chime.wav" ,
1 )
EndIf
Sleep(30* 1000)
WEnd


It's just an endless loop that wakes up every 30 seconds and checks
for the existence of an Outlook Reminder window. If it finds one, it
plays a WAV file.

I start the script from my Windows Startup group and it just runs in
the background while I'm logged on. If a reminder pops up and is still
there 30 seconds later, it keeps playing my sound until the window
goes away.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top