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[]
- Ixus40/SD300 Missing required function