WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

hourly chime

 
   Home -> Office -> Programming VBA RSS
Next:  UserProperties issue  
Author Message
Jabberwocky

External


Since: Aug 01, 2008
Posts: 5



(Msg. 1) Posted: Wed Oct 22, 2008 10:10 am
Post subject: hourly chime
Archived from groups: microsoft>public>outlook>program_vba (more info?)

I've never done vbscripts in outlook. Has anyone written a script to
produce an hourly chime? (bell or .wav)

Thanks.
Back to top
Login to vote
Michael Bauer [MVP - Outl

External


Since: Aug 04, 2006
Posts: 1315



(Msg. 2) Posted: Wed Oct 22, 2008 10:35 pm
Post subject: Re: hourly chime [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If VBA is fine for you, here's a sample for a timer:
http://www.vboffice.net/sample.html?mnu=2&pub=6&lang=en&smp=4&cmd=showitem

And this one plays a sound asynchronously:

Private Declare Function sndPlaySound Lib "winmm.dll" Alias _
"sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As _
Long) As Long
Const SND_SYNC = &H0
Const SND_ASYNC = &H1
Const SND_NODEFAULT = &H2
Const SND_LOOP = &H8
Const SND_NOSTOP = &H10


Public Sub PlaySoundAsync(File As String)
On Error Resume Next
sndPlaySound File, 1 Or 2
End Sub

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Wed, 22 Oct 2008 10:10:45 -0700 (PDT) schrieb Jabberwocky:

> I've never done vbscripts in outlook. Has anyone written a script to
> produce an hourly chime? (bell or .wav)
>
> Thanks.
Back to top
Login to vote
Jabberwocky

External


Since: Aug 01, 2008
Posts: 5



(Msg. 3) Posted: Tue Oct 28, 2008 8:48 am
Post subject: Re: hourly chime [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you very much for your response.

I'm sorry, but I need some hand-holding on this. The sample timer
script (link) looks more like a countdown timer. I suppose I could
modify it to calculate the number of minutes until the next hour, and
then set the timer, but that only gives me the first chime. I don't
understand what the attached subroutine does. It plays a sound
asynchronously with respect to what?

Please forgive my noob questions.
Back to top
Login to vote
Michael Bauer [MVP - Outl

External


Since: Aug 04, 2006
Posts: 1315



(Msg. 4) Posted: Tue Oct 28, 2008 8:44 pm
Post subject: Re: hourly chime [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you call the timer with a value of 60,000, it fires an event once in a
minute (which has 60,000 milliseconds). If you need an event once every
hour, call it with 360,000 (ms).

playing the sound async means, the code execution continues right after
starting the sound. If you call a sound synchronous instead, the code
execution won't continue before the sound has been completely plaid.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Tue, 28 Oct 2008 08:48:17 -0700 (PDT) schrieb Jabberwocky:

> Thank you very much for your response.
>
> I'm sorry, but I need some hand-holding on this. The sample timer
> script (link) looks more like a countdown timer. I suppose I could
> modify it to calculate the number of minutes until the next hour, and
> then set the timer, but that only gives me the first chime. I don't
> understand what the attached subroutine does. It plays a sound
> asynchronously with respect to what?
>
> Please forgive my noob questions.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET