Skip to content

Instantly share code, notes, and snippets.

@martymcguire
Created February 2, 2010 01:53
Show Gist options
  • Select an option

  • Save martymcguire/292276 to your computer and use it in GitHub Desktop.

Select an option

Save martymcguire/292276 to your computer and use it in GitHub Desktop.
A script for handling USB Remote events on my Canon SD300 running CHDK
rem SETUP:
rem * Place in CHDK/SCRIPTS/ on your SD card
rem * Load the script in the Scripting Parameters
rem menu and turn Enable Remote on in Remote Parameters
rem
rem USAGE:
rem 1. Start the camera (and enable CHDK it doesn't autoload)
rem 2. Switch to record mode and disable the flash
rem 3. Switch to <ALT> mode and click Shoot to start the script
rem 4. The camera should shoot whenever USB power is detected.
title Remote button
press "shoot_half"
while 1
wait_click 1
if is_key "remote" then click "shoot_full"
wend
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment