UBASIC/Scripts:Standard/Test/Setmode
Talk0
538pages on
this wiki
this wiki
< UBASIC
Contents |
CHDK/SCRIPTS/TEST/setmode.bas
Edit
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
Edit
method
Edit
- 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
Edit
PROPCASE_SHOOTING_MODE or CHDK value per above.
Dependencies
Edit
- This script is supported only in CHDK Version 0.9.9 build 847 and later
Camera notes
Edit
Verified on
Edit
Broken on
Edit
- Ixus40/SD300 Missing required function