PC Review


Reply
Thread Tools Rate Thread

Countdown Clock

 
 
Tom Rodeheaver
Guest
Posts: n/a
 
      29th Apr 2010
Does anyone know of a way to run an swf movie (a countdown clock) over a
number of slides being run on autopilot? I think I know what the answer is
but I'd love to hear if there are any solutions.
Thanks
--
Tom Rodeheaver
 
Reply With Quote
 
 
 
 
Preschool Mike
Guest
Posts: n/a
 
      30th Apr 2010
Does it have to be a swf movie? If not I have a code I use for games that
some of the experts here helped me develop. Help yourself if you like.

'goes at top of module if you want a sound to play when time is up
Declare Function sndPlaySound32 Lib "winmm.dll" _
Alias "sndPlaySoundA" _
(ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Public StopNow As Boolean 'if you want the time to stop

Sub Wait(waitTime As Long)
Dim start As Double
start = Timer
While Timer < start + waitTime

If StopNow Then
Exit Sub
Else
DoEvents
End If
Wend
End Sub

'You'll need to insert a shape on the master slide and give it a name
'like countdown clock .
Sub CountDown()
Dim dText As Date
Dim X As Long
StopNow = False
'make sure you remove the quotes
For X = "The amount of time for your clock in seconds (e.g., 120 = 2
minutes)" To 0 Step -1

If Not StopNow Then
dText = CDate(X \ 3600 & ":" & _
((X Mod 3600) \ 60) & ":" & (X Mod 60))
ActivePresentation.SlideMaster.Shapes("name of your shape") _
..TextFrame.TextRange.Text = Format(dText, "Nn:Ss")
Wait (1)
End If
Next
'If Not StopNow Then 'Quote out if you want the sound to play
'OutOfTimeSound
'End If

End Sub

'sound needs to be on c: drive
Sub OutOfTimeSound()
Call sndPlaySound32 _
("C:\"name of your sound", 0) 'remove the quote and insert sound name
End Sub

--
Mike Mast
Special Education Preschool Teacher


"Tom Rodeheaver" wrote:

> Does anyone know of a way to run an swf movie (a countdown clock) over a
> number of slides being run on autopilot? I think I know what the answer is
> but I'd love to hear if there are any solutions.
> Thanks
> --
> Tom Rodeheaver

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
countdown clock? Steve Microsoft Powerpoint 1 18th Nov 2009 10:17 PM
Countdown Clock Tom K Microsoft Powerpoint 14 15th Jan 2008 01:20 PM
countdown clock Mike Microsoft VC .NET 1 19th Oct 2007 09:14 PM
more on countdown clock Fred Dagg Microsoft Powerpoint 11 24th May 2006 03:03 PM
Countdown clock??? =?Utf-8?B?TG91aXNl?= Microsoft Powerpoint 8 16th Feb 2006 04:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:39 PM.