CHDK Wiki
m (cat)
m (t)
 
Line 29: Line 29:
 
* [[SD300|Ixus40/SD300]] Missing required function
 
* [[SD300|Ixus40/SD300]] Missing required function
   
[[Category:Scripting]][[Category:Scrips]]
+
[[Category:Scripting]][[Category:Scripts]]

Latest revision as of 09:00, 14 February 2012

CHDK/SCRIPTS/TEST/setmode.bas

This is a standard test script included in the full CHDK distribution. It is used to verify the correct function of the capture mode control API.

This script attempts to set the specified mode capture mode. Before and after the attempt, the mode status is printed in the format

prop PPP mode NNN rec R

where PPP is the canon shooting mode, NNN is the CHDK mode value, and R is 1 for REC and 0 for PLAY.

If the mode after the set call doesn't match the requested value, an error is reported.

The script waits for a key press after finishing

Options

method

  • 0 canon mode. The value is interpreted as a canon shooting mode value.
  • 1 CHDK mode. The value is interpreted as a CHDK mode value.

value

PROPCASE_SHOOTING_MODE or CHDK value per above.

Dependencies

  • This script is supported only in CHDK Version 0.9.9 build 847 and later

Camera notes

Verified on

Broken on