Hope someone can help?
I currently use set_exit_key("down") to exit my script in ALT mode.
What I need to do is also call a function to tidy things up, which I do elsewhere in the script.
So the question is: is there a way to get CHDK Lua to call one of my functions when the script terminates?
I know I could use a a no key version of set_exit_key("no_key") and handle the down button myself, but I was hoping the CHDK Lua may have an option to call a user function?
Cheers
Garry