Small patch to disable the ability to press the <ALT> key and thus exit <ALT> while a script is running as discussed here :
I'm not sure about this. Currently, scripts continue to run when you leave alt mode, they just can't send key presses. They still receive key presses (as does the canon firmware)
You can still exit_alt() under script control. Can you think of a use case for doing it via the <ALT> key while a script is running? (Spin this to its own thread ?)
I have no idea if people use it this way, but it seems more like a behavior change than a bug fix to me.
I just posted a simple patch that changes the script abort key from "shoot_full" to <alt>. See this link for more info:http://chdk.setepontos.com/index.php?topic=10580.msg104516#msg104516I think the current <alt> key behavior is an unintended bug. I can't imagine anyone using it. Most users don't understand what's happening when a script is running, so it's not wise to let them leave <alt> mode at any random time while running a script. The behavior of the script is unpredictable and unintended by the script writer. Furthermore, if you hold the <alt> key down while a script is running, it exits <alt> mode and sends the real <alt> keystroke to the camera. For the sx260, that switches my script to <play> mode. In any event, it trashes the script and you can't even tell it's still running. Let's fix this.
Have to disagree. I believe it would be better to fix whatever is broken and allow scripts to run correctly whether CHDK is in <ALT> mode or not. The audio meter script is a perfect example of why this would be useful.
Quote from: philmoz on 26 / August / 2013, 22:52:40Have to disagree. I believe it would be better to fix whatever is broken and allow scripts to run correctly whether CHDK is in <ALT> mode or not. The audio meter script is a perfect example of why this would be useful.While I disagree with making script abort an <ALT> key function - for reasons I've posted on the other thread - I still struggle with going out of <ALT> mode while a script is running by pressing the <ALT> key. In the case of the audio meter script, the script could use the exit_alt() command to get out of <ALT> mode as it was designed to run that way! Doing it accidentally with any old script is not a good thing.
Started by Killa-X
Started by bugsplatter
Started by CNW
Started by jamesqf
Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by wolfshadow
RAW Shooting and Processing