Controlling the photo booth
Scripts can control the photo booth by sending key presses to the photo booth window (please see Keyboard Shortcuts for a list of shortcuts that can be used) or by sending WM_COPYDATA messages. The following WM_COPYDATA messages are available:
1.
|
Data=100 and the pathname of the photo
This message tells the app that any post processing being applied to a photo has completed. It has the same effect as sending Ctrl+Z when running the droplet.ahk script to process Photoshop droplets (see Modifying Photos Before Printing).
|
2.
|
Data=200 and a URL containing commands and/or strings
This message provides a way of processing QR code URLs to control the photo booth e.g. start the shooting sequence, read info such as the user's name and to email photos. Please see QR Codes and Contactless Operation for more information about the format of the URL.
|
3.
|
Data=300 and the text for a touchscreen command
This message allows any touchscreen command to be run provided the touchscreen command has been defined using the touchscreen editor.
The app ignores upper and lower case, spaces and punctuation when comparing the command string with the touchscreen actions e.g. the following strings will all match the touchscreen action "Select photobooth+start":
Select photobooth+start
select photobooth+start
selectphotobooth+start
selectphotoboothstart
|
4.
|
Data=301 and the text for a touchscreen command
This is the same as the data=300 message described above except that the touchscreen action does not need to be defined. One example of this message is executing a "payment accepted" touchscreen action when a payment has been received. This allows the action to be executed without having to define it in the payment screen. If the a touchscreen action for "payment accepted" was defined in the payment screen users would be able tap the screen without having to make a payment.
|