« Reply #4 on: 14 / October / 2013, 18:17:59 »
on some reason the first click may not start video and I need to do
repeat click("video") sleep(1000)until get_video_status == started...
sleep(...)
click("video")
what can be the problem?
what is the difference between click("video") and press("video")?
The problem is that the "click" presses and releases the specified button very quickly. On some camera there are functions that require the button to be pressed for slightly longer than the "click" function presses. In those cases, you need to use a press and release with a delay between the two statements.
Or increase the value of CAM_KEY_PRESS_DELAY in platform_camera.h.
Default is 30ms, G1X & SX40 (amongst others) requires this be increased to 60ms.
Phil.
Logged
CHDK ports:
sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
g12 (1.00c, 1.00e, 1.00f & 1.00g)
sx130is (1.01d & 1.01f)
ixus310hs (1.00a & 1.01a)
sx40hs (1.00d, 1.00g & 1.00i)
g1x (1.00e, 1.00f & 1.00g)
g5x (1.00c, 1.01a, 1.01b)
g7x2 (1.01a, 1.01b, 1.10b)