Thanks for the quick reply. I'm now trying to set ISO by key presses, and it's not working either.
--set ISO values by keypresses and read CHDK ISO values
iso_temp=0
click_delay_short=1000
function click_with_delay(btn)
click(btn)
sleep(click_delay_short)
end
function next_iso()
click_with_delay("set")--ISO settings
click_with_delay("right")--next ISO value
click_with_delay("set")--exit settings
end
function change_iso()
--sd1200is
--the only known state is first turning it on, in rec, P mode
if iso_temp==0 then
click_with_delay("set")--mode menu
click_with_delay("down")-ISO settings
click_with_delay("set")-select first value, AUTO
end
next_iso()
end
function get_iso()
--print(get_iso())
print(get_iso_market())
print(get_iso_mode())--the only function that doesn't return 0. gives index.
print(get_iso_real())
print(get_sv96())
end
print "first ISO"
change_iso()
sleep(1000)
press("shoot_half")
sleep(1000)
release("shoot_half")
get_iso()
print "second ISO"
change_iso()
get_iso()
0
3
0
0
In this case, I set the ISO to the the 4th value (#3 if zero-based counting). So reading the index works, but none of the keypresses are working. So I tried just click("right") in playback mode, it should scroll through some existing pictures, but nothing happened.
Could this be a problem with the port or my script?
To answer your question, I wanted to make a universal camera script to move through the usual market ISO values, so I want to go by index. I don't know what would happen if I tried to set an ISO that didn't normally exist, and if I tried, I'd have to take pictures and prove that there's higher usable ISO's. To avoid that, I want to stick to the usual values.