AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script powerpoint slide transitions (for audio sync)

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
ezuk



Joined: 04 Jun 2005
Posts: 146

PostPosted: Wed Dec 09, 2009 11:01 am    Post subject: Script powerpoint slide transitions (for audio sync) Reply with quote

Hello,

Here is a simple script I created to sync PowerPoint with an audio file.

This is for creating video tutorials and explanations.

My workflow is this:

1) I record audio and edit it in Audacity until I'm happy with it.
2) I create Powerpoint slides to go with the audio. These are many slides, and in-slide animations that should go _exactly_ on the right word.
3) I then play the audio and see exactly where I want the slide transitions to happen. I pause every time and check what's the exact position.
4) I edit the script's timing file (times) and put in the times.
5) I then run Camtasia and run the script with Powerpoint and the audio, and record it all in sync.

Code:

Window = PowerPoint ; What's the title of the window?
TimesFilename = times ; what's the filename with the intervals?
SetTitleMatchMode, 2
PreviousTime = 0

WinActivate,%Window%
Send,{f5}

Loop, read, %TimesFilename%
{
    CurrentTime = %A_LoopReadLine%
    SleepDuration := A_LoopReadLine-PreviousTime
    TimedOperation()
    Sleep,SleepDuration
    PreviousTime := CurrentTime
}

TimedOperation()
{
  Send, {space}
}


Times file:

Code:

3000
7000
9400
11000
[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group