A script can't know what settings to retain if it isn't running when the camera shuts down (or gets switched to play mode), but for the settings that you know you'll always want to be the same at least for the time being a script could help if you set it autorun on startup. But even so it is a bit cumbersome and doesn't solve things possibly screwed up by preview mode, especially since we don't have a separate startup script slot (or do we?), just one current script.
Like others, I've gotten frustrated with the camera switching off continuous shooting mode and zoom as well and would really like this feature to be a set-and-forget CHDK option using which the camera would just work the way we expect... ideally it could even check the clock and revert to some defaults (like auto white balance, single shot mode, wide angle) if the camera is powered on after more than 30 minutes.
But... maybe we don't actually desperately need an option to resume all kinds of settings and the menus to configure this, but instead do it in a more general fashion by adding these four configurable menu items:
1) select script to be run right after power-on
2) select script to be run right before power-off
3) select script to be run right after switch-to-rec-mode
4) select script to be run right before switch-to-play-mode
Scripts 2 and 4 would then be programmed save settings right before the camera is let to power off or switch to play mode and the other two would load the saved settings.
Of course, we need proper file I/O commands for scripts to do it this way. I'm not sure how many other applications these autorun scripts would be good for, maybe someone will think of something
