Adblock breaks this site

Who Wants To Be A Millionaire

Discussion in 'Archives' started by m_siepel, Jun 23, 2010.

Thread Status:
Not open for further replies.
  1. m_siepel

    m_siepel Newcomer

    Joined:
    Jun 23, 2010
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0
    Who Wants To Be A Millionaire

    I have a copy of the WWTBAM PowerPoint Presentation that was created by Edward Catchpole. I have tried to contact him, but to no avail. I am trying to get the Phone A Friend lifeline VBA to work. It worked in previous versions of PP, but not since upgrading to MSOFFICE2010. Here is the VBA for it. What happens is the timer appears, but will not rotate as state in the code and note go away. Any help (including the entire PP file if needed) would be appreciated.

    Public Sub PhoneAFriend()

    Dim timerProgress As Shape
    Dim timerFigure As Shape
    Dim timerProgressbg As Shape
    Dim timerEndCall As Shape

    Dim timerStart As Long
    Dim timerEnd As Long
    Dim thisTick As Long
    Dim rotation As Single

    If pafInProgress = True Then Exit Sub
    If ViewingCorrect = True Then Exit Sub

    Set timerProgress = SlideShape(QuestionSlide, "timerprogress")
    Set timerFigure = SlideShape(QuestionSlide, "timerfigure")
    Set timerProgressbg = SlideShape(QuestionSlide, "timerprogressbg")
    Set timerEndCall = SlideShape(QuestionSlide, "cancelpaf")

    cancelPAF = False
    pafInProgress = True

    CurrentPAF = CurrentPAF + 1

    'set PAF symbol invisible
    Call PlaySound(PresPath & "\Audio\PAF_CLOCK.wav", 0, SND_ASYNC + SND_FILENAME)
    Sleep (1000)
    SlideShape(QuestionSlide, "PAF").Left = -250

    timerProgress.Left = 269.25
    timerFigure.Left = 269.25
    timerProgressbg.Left = 269.25
    timerEndCall.Left = 233.125

    timerStart = GetTickCount()
    timerEnd = timerStart + 30000
    thisTick = GetTickCount()

    Do While cancelPAF = False
    thisTick = GetTickCount()

    rotation = ((timerEnd - thisTick) / 30000) * 180 'PowerPoint makes 180 scale to 360 for some reason

    If thisTick < timerEnd Then
    timerProgress.Adjustments.Item(1) = rotation - 90
    timerProgress.rotation = -rotation
    Else
    timerProgress.Adjustments.Item(1) = 90.1
    timerProgress.rotation = 180
    Exit Do
    End If

    Dim newTime As Integer

    newTime = (timerEnd - thisTick) / 1000 'Time in seconds remaining
    If timerFigure.TextFrame.TextRange.Text <> newTime Then
    timerFigure.TextFrame.TextRange.Text = newTime
    End If

    DoEvents
    Loop

    timerProgress.Left = -500
    timerFigure.Left = -500
    timerProgressbg.Left = -500
    timerEndCall.Left = -500

    pafInProgress = False
    Sleep (3000)
    Call PlayBGM(True)

    End Sub
     
  2. Vanmaster5

    Vanmaster5 Apprentice
    Banned

    Joined:
    Nov 24, 2009
    Posts:
    798
    Referrals:
    2
    Sythe Gold:
    0
    Who Wants To Be A Millionaire

    is there other classes that you have? nothing looks wrong, but i cant tell without seeing other classes.
     
  3. Jimmy

    Jimmy Ghost
    Retired Sectional Moderator $5 USD Donor

    Joined:
    Jun 24, 2008
    Posts:
    2,421
    Referrals:
    10
    Sythe Gold:
    25
    Who Wants To Be A Millionaire

    Old thread is old.
     
< Selling Auth-codes | Need 97 Construction assist >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site