1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
Dim s1, s2 As Integer Sub OnSlideShowPageChange() s1 = 1 s2 = 1 With ActivePresentation.Slides(SlideShowWindows(1).View.Slide.SlideIndex) If .Shapes.Title.TextFrame.TextRange.Text = "Windows 安裝Splunk" Then allhide selectphoto (s1) ElseIf .Shapes.Title.TextFrame.TextRange.Text = "Windows 設定 Forward" Then allhide_1 selectphoto_1 (s2) End If End With End Sub Function allhide() With ActivePresentation.Slides(SlideShowWindows(1).View.Slide.SlideIndex) If .Shapes.Title.TextFrame.TextRange.Text = "Windows 安裝Splunk" Then For i = 1 To 24 Step 1 .Shapes("windows_splunk_" & Format(i, "00")).Visible = msoFalse 'format設定2位數,不足2位數補0 Next i End If End With End Function Function selectphoto(num As Integer) With ActivePresentation.Slides(SlideShowWindows(1).View.Slide.SlideIndex) If .Shapes.Title.TextFrame.TextRange.Text = "Windows 安裝Splunk" Then .Shapes("windows_splunk_" & Format(num, "00")).Visible = msoTrue .Shapes("windows_splunk_" & Format(num, "00")).ZOrder msoBringToFront End If End With End Function Sub photo_back() With ActivePresentation.Slides(SlideShowWindows(1).View.Slide.SlideIndex) If .Shapes.Title.TextFrame.TextRange.Text = "Windows 安裝Splunk" Then s1 = s1 - 1 If s1 = 0 Then s1 = 24 allhide selectphoto (s1) End If End With End Sub Sub photo_next() With ActivePresentation.Slides(SlideShowWindows(1).View.Slide.SlideIndex) If .Shapes.Title.TextFrame.TextRange.Text = "Windows 安裝Splunk" Then s1 = s1 + 1 If s1 = 25 Then s1 = 1 allhide selectphoto (s1) End If End With End Sub Function allhide_1() With ActivePresentation.Slides(SlideShowWindows(1).View.Slide.SlideIndex) If .Shapes.Title.TextFrame.TextRange.Text = "Windows 設定 Forward" Then For i = 1 To 6 Step 1 .Shapes("windows_forward_" & Format(i, "00")).Visible = msoFalse Next i End If End With End Function Function selectphoto_1(num As Integer) With ActivePresentation.Slides(SlideShowWindows(1).View.Slide.SlideIndex) If .Shapes.Title.TextFrame.TextRange.Text = "Windows 設定 Forward" Then .Shapes("windows_forward_" & Format(num, "00")).Visible = msoTrue .Shapes("windows_forward_" & Format(num, "00")).ZOrder msoBringToFront End If End With End Function Sub photo_back_1() With ActivePresentation.Slides(SlideShowWindows(1).View.Slide.SlideIndex) If .Shapes.Title.TextFrame.TextRange.Text = "Windows 設定 Forward" Then s2 = s2 - 1 If s2 = 0 Then s2 = 6 allhide_1 selectphoto_1 (s2) End If End With End Sub Sub photo_next_1() With ActivePresentation.Slides(SlideShowWindows(1).View.Slide.SlideIndex) If .Shapes.Title.TextFrame.TextRange.Text = "Windows 設定 Forward" Then s2 = s2 + 1 If s2 = 6 Then s2 = 1 allhide_1 selectphoto_1 (s2) End If End With End Sub |
Categories
- FFMpeg (5)
- Libav (1)
- Google (3)
- iBeacon (1)
- LDAP (3)
- Me (2)
- Network (11)
- OS (149)
- RTMP (4)
- SIP (1)
- Kamailio (1)
- SNMP (1)
- VMware (20)
- VCP考試 (1)
- 伺服器 網站服務 (105)
- 名詞解釋 (4)
- 專案管理 (1)
- 工具軟體 (50)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (1)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (79)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (7)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (37)
- FFMpeg (5)