I was wondering if it would be possible to have a default script for still image related modes, and a default script for video modes.
for example, suppose you have a motion detection or HDR script that you like to use with still images, but for video mode, you manage to find a script that allows for manual focusing or something.
I was thinking that it would be awesome if the still image and video mode can have separate default scripts.
As msl suggested, the most straightforward way to do this is to detect the current shooting mode in a script and do something different as required.
You could also take a look at the
CHDK User Menu in the 1.2.0 version. While not quite what you would suggested, it does allow you to add a short list of your favorite scripts to a menu that will display as soon as you go into <ALT> mode.
Also, tsvstar did a lot of work on his
custom branch of CHDK during the
UI 2.0 discussion last summer. The thread starts at
this post but he basically added functionality that IIRC invoked certain scripts to run automatically when the camera changed modes. There was a lot more to his build - including the ability to select different camera setups for different users and a more advanced user menu. Ultimately, I think his branch became quite complex and somewhat specialized to his specific needs so his changes never found their way into the main trunk. At sometime I think it would be good to go back and look at some parts of what he did again.
The script reads the shooting mode and calls depending on the mode another script.
@msl : how does a uBASIC script launch another script? (or Lua for that matter - although I assume its easier in Lua, I just haven't looked)