PDA

View Full Version : Back to photo mode after recording video



alexp
December 2nd, 2012, 05:29 AM
Chris, how easy (or hard) is it to make the photobooth jump back to the photo mode after a video recording? Are there step by step instructions?
Thanks.

yowie
December 3rd, 2012, 04:27 AM
No its not hard you just use an application running in the background called AutoHotkey which is free and run a small script file. I just modified one of the samples. This works for me just save the text below as a *.ahk file and put it in the Startup Folder in the Programs directory in windows. This will start Autohotkeys and run the script in the background.

;-----------------------------------------------------------------------

; Set TimeoutInSecs to the number of seconds before the booth times out
; and returns to welcome screen. Set this to 0 to disable the timeout
TimeoutInSecs = 120

; loop forever monitoring the status of the photobooth screen by looking
; at the window title which is in the form:
; Breeze Systems Photobooth -
LookForReady = 1
Timeout = 0
Loop
{
IfWinExist, Breeze Systems Photobooth
{
WinGetTitle, Title, Breeze Systems Photobooth
if Title contains ready.jpg
{
; Photobooth is displaying ready screen - are we looking for ready.jpg?
if LookForReady
{
; yes, photobooth has just switched from processing.jpg to ready.jpg
LookForReady = 0
WinActivate, Breeze Systems Photobooth
; Send F6 to switch to standby
Send ^p
Send {F6}
Timeout = 0
}
if (Timeout > 0 and A_TickCount > Timeout)
{
WinActivate, Breeze Systems Photobooth
; Send F6 to switch to standby
Send ^p
Send {F6}
Timeout = 0
}
}
else if Title contains processing.jpg
{
; Photobooth is displaying ready screen - start looking for ready.jpg
LookForReady = 1
}
}
else
{
LookForReady = 1
}
Sleep 100 ; sleep for 1/10th sec to avoid hogging the processor
}
Return

; Exit standby mode when F12 is pressed
F12::
IfWinExist, Breeze Systems Photobooth
{
WinGetTitle, Title, Breeze Systems Photobooth
if Title contains welcome.jpg
{
if (TimeoutInSecs > 0)
{
Timeout := A_TickCount + TimeoutInSecs * 1000
}

Chris Breeze
December 3rd, 2012, 03:00 PM
A simpler way to do it is to save the photobooth settings to file (ensuring that "Startup in video booth mode when selecting full screen photobooth" is not selected) and then define this as the default profile. This will load your default settings after each stills or video shooting sequence.

alexp
December 3rd, 2012, 05:46 PM
Thank you Chris. I followed your instructions, and it worked!

Yowie, I appriciate you trying to help, but just so you know, the script you gave me is incomplete.
This is the error message I got:

http://dl.dropbox.com/u/10164102/error.jpg