Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub Pole1()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole2()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole3()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole4()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole5()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole6()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole7()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole8()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole9()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole10()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole11()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole12()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole13()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole14()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole15()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole16()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub Pole17()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbMagenta
- Case vbMagenta
- .RGB = vbYellow
- Case vbGreen
- .RGB = vbWhite
- Case vbYellow
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbGreen
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False And _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 0.5
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = True
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0)
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1 Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 0.5
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(255, 255, 0)
- With SlideShowWindows(1).View
- WaitSeconds 4
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 6, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("LoseIndicator").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- (ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 0, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 0) Or ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 0, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 5
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 0, 0) And _
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 0) And _
- (ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 0)) And _
- (ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 0, 0) Or ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 0)) Then
- With SlideShowWindows(1).View
- WaitSeconds 3
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 0) Then
- DoEvents 'do nothing
- ElseIf ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 0, 255) Then
- DoEvents 'do nothing
- Else
- .GotoSlide 10, msoFalse
- End If
- End With
- End If
- End Sub
- Sub ResetBtn()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("ZivotyOnOffBtn").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("ZivotyOnOffBtn").Fill.ForeColor.RGB = RGB(255, 255, 255)
- ActivePresentation.Slides(3).Shapes("Zivot1").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot1Group").Visible = True
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot2").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot2Group").Visible = True
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot3").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot3Group").Visible = True
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot4").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot4Group").Visible = True
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot5").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot5Group").Visible = True
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = False
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = False
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End Sub
- Sub StopBtn()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- If ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole11").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole9").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole14").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole15").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole17").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole13").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole12").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole5").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole6").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole7").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole8").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole10").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Pole16").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- End If
- If ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 0.5 And ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- End If
- End Sub
- Sub ZivotyOnOffBtn()
- '
- ' Makro vytvořené 30.5.2022 uživatelem SGvagon
- '
- With ActivePresentation.Slides(3).Shapes("ZivotyOnOffBtn").Fill.ForeColor
- Select Case .RGB
- Case vbWhite
- .RGB = vbBlack
- Case vbBlack
- .RGB = vbWhite
- End Select
- End With
- If ActivePresentation.Slides(3).Shapes("ZivotyOnOffBtn").Fill.ForeColor.RGB = RGB(255, 255, 255) Then
- ActivePresentation.Slides(3).Shapes("ZivotyOnOffBtn").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot1").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot1Group").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot2").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot2Group").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot3").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot3Group").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot4").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot4Group").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot5").Visible = True
- ActivePresentation.Slides(3).Shapes("Zivot5Group").Visible = True
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(3).Shapes("ZivotyOnOffBtn").Fill.ForeColor.RGB = RGB(0, 0, 0) Then
- ActivePresentation.Slides(3).Shapes("ZivotyOnOffBtn").Fill.Transparency = 0.5
- ActivePresentation.Slides(3).Shapes("Zivot1").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot1Group").Visible = False
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot2").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot2Group").Visible = False
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot3").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot3Group").Visible = False
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot4").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot4Group").Visible = False
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot5").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot5Group").Visible = False
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot1").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot2").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot3").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot4").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.Transparency = 1
- ActivePresentation.Slides(3).Shapes("Zivot5").Fill.ForeColor.RGB = RGB(0, 255, 0)
- ActivePresentation.Slides(3).Shapes("CaraKlik").ActionSettings(1).SoundEffect.Play
- End If
- If ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = True
- End If
- If (ActivePresentation.Slides(5).Shapes("Odpoved1").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved2").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved3").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved4").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved5").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved6").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved7").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved8").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved9").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved10").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved11").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved12").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved13").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved14").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved15").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved16").Visible = True Or _
- ActivePresentation.Slides(5).Shapes("Odpoved17").Visible = True) And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot1").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot2").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot3").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot4").Visible = False And _
- ActivePresentation.Slides(5).Shapes("OdpovedZivot5").Visible = False Then
- ActivePresentation.Slides(5).Shapes("BezOdpovedi").Visible = False
- End If
- End Sub
Add Comment
Please, Sign In to add comment