Canon Camera Hackers Manual page 122

Camera hackers manual berthold daum
Table of Contents

Advertisement

wait_click t
wait_click(t)
wait_click()
Waits for a key click. The optional parameter t can specify a time-out value in milli-
seconds. If t is not specified or has the value 0, no time-out will occur.
is_pressed r "button-name"
r = is_pressed "button-name"
r = is_pressed("button-name")
Typically used after a wait_click command for determining the button clicked. If
the clicked button matches the specified name, a value of 1 resp. true is returned. By
using the pseudo button name "no_key", it is even possible to check for a time-out.
is_key r "button-name"
r = is_key "button-name"
r = is_key("button-name")
Determines if the specified button is pressed. If the pressed button matches the
specified name, a value of 1 resp. true is returned. Typically used standalone without
wait_click.
wheel_right
wheel_left
wheel_right()
wheel_left()
Only for PowerShot G7 and SX100IS. Turns the multi-control wheel one stop to the
right or to the left.
r = get_video_button
r = get_video_button()
Returns 1 resp. true if the camera has a video button (S-series, TX1).
uBasic
Lua
Lua
uBasic
uBasic
Lua
uBasic
uBasic
Lua
uBasic
uBasic
Lua
Lua
uBasic
Lua
shoot_half
zoom_out
print
left
set
display
macro
shoot_full
zoom_in
up
iso
right
flash
down
menu
erase
5.5 CHDK commands
Figure 5-2
Button names that can be used with
the commands press, release, and
click. Additional buttons on some
cameras are mf (manual focus), video,
timer, expo_corr ( exposure correction),
and fe (microphone). On S-series,
print stands for the
shortcut
erase stands for the
func
Pseudo button names are no_key for a
time-out and remote for the USB
remote control.
113
button,
button.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powershot sx10 is

Table of Contents