2. It requires an extra key for script exit. I don't have an extra key on the D20 available.
Use "no_key" then. Or control exit by using set_key_exit() with the <ALT> key if my patch to disable its functionality while scripts are running is accepted.
If you had these options, it would do what I want, at least:
set_key_exit("alt")
set_key_exit("long_alt")
A daring thought: The <ALT> indicator could be used as indicator for the alternative exit button.
- exit button not defined: <no exit>
- exit button defined, e.g. display button: <disp>
Done :
That is pretty cool! But I'm also hoping to be able to turn off the <ALT> indicator from the script for a completely blank screen. With my time lapse program in continuous mode, the <ALT> indicator flashes on and off at the bottom of the image display, which is very distracting. An option to turn off the entire CHDK OSD display, which also flashes, would be nice too, perhaps in the same new function. Right now, I have to turn off all the individual OSD items from the CHDK menu.
I still like my idea of always having the <ALT> key be the exit key. Instead of a menu function, then, you could have this script function:
alt_key_exit(0 or 1) maybe 2 would require a long press?
With this function, you could still keep the current <alt> key behavior of pausing and restarting the script. I don't use it, but someone might be using it. The function would make the shoot_full key work in scripts, and switch the exit key to <alt> or <long_alt>.
You should be able to code it to require the <ALT> key to be released after script exit before CHDK recognizes it. As for a double click, I don't see a problem there. You could just press it again after the script exits to go back to <ALT> mode if that happens. Or you could code it so the key has to be down 50 msec to exit, or some other double click detector if it's a real problem.