In revision 2777 (trunk only) I've added an interactive editor for the User Menu to eventually replace the current clunky method of editing the menu.
Selecting 'Add script to User Menu' opens the file browser in the scripts folder. Selecting .bas or .lua file and pressing SET will add the script to the User Menu.
Testing and feedback welcome.
QuoteSelecting 'Add script to User Menu' opens the file browser in the scripts folder. Selecting .bas or .lua file and pressing SET will add the script to the User Menu.Did you give any thought to the idea of adding an "execute script" menu item in addition the current "select script" menu item ?
Very nice improvement! Thanks for that.I have found some issues:1. I miss a remove function for the script and module entries. This is only possible with the old edit function (erase/shoot half).
2. The prompt popup windows works not quite right. I get often a window with cryptic chars (see attached picture). Very rarely the window is displayed correctly. I can see no pattern, tested with trunk autobuild and translated German version.msl
Got a chance to play with it and so far, so good. One little thing (rev2778) I notice is it that when adding items to the menu, the "Information" popup box sometimes contains the name of the menu item being added and sometimes not. The Yes & No buttons are always there. Sometime is you click "No" and then "Set" again, the menu item appears in the "Information" box but most times it does not. I tried long and short menu items but the string length did not seem to be related.This is probably related to the bug msl reported earlier.So will the plan be to elimate the old "edit" mode at some point?
I was going to leave the existing code until this version was working ok.One question - is it worth keeping the 'Add script to User menu' option on the Script menu (small code overhead), or keep all user menu editing just in the module?
Revision 2779 should, hopefully, fix the popup text issue.
1) Edge overlay, Zebra & Histogram are really just fancy OSD stuff. Is there a better way to roll them into the OSD menu? (like Grid, Misc values, state display, ... and colored icons)
2) There seems to be a bit of cross over between CHDK settings and Miscellaneous Stuff?
Enable half-press shortcut keys should be in Misc rather than CHDK settings? As should "Enable Splash Screen on Load"?
Started by TobiMarg General Discussion and Assistance
Started by adeuring Script Writing
Started by philmoz « 1 2 3 » General Discussion and Assistance
Started by reyalp General Discussion and Assistance
Started by dmitrys « 1 2 3 4 » General Discussion and Assistance