Re: Newbie help needed: capturing keypress to record QuickTime timing
Re: Newbie help needed: capturing keypress to record QuickTime timing
- Subject: Re: Newbie help needed: capturing keypress to record QuickTime timing
- From: Jon Pugh <email@hidden>
- Date: Tue, 1 Jan 2008 08:27:50 -0800
At 3:33 PM -0500 12/31/07, Chaotic Brodeymeister wrote:
>Can someone help me get started or point me to some sample scripts? Here is what I want the script to do:
>
>1. Start playing the video.
>2. Record the frame index every time the person presses a key.
>3. Ask for the person's age and gender and record that information, too.
>4. Save everything to a file.
This is going to be tough to accomplish without custom software, as neither AppleScript nor the QuickTime player is informed when a key is pressed.
In theory you could poll the state of the keyboard repeatedly, but that would require an osax (which my Jon's Commands provides on PPC but not Intel) and would involve a great deal of latency, meaning that the time between noticing the key press and asking for the current frame number would be large, making you get the wrong frame. How large depends on your machine and luck.
These sorts of "reaction time" tests are all about the amount of error you can account and correct for. Well, maybe not so much for a 6th grade project. ;)
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden