CHDK Forum
CHDK Development => Feature Requests => Topic started by: waterwingz on 04 / September / 2011, 13:37:59
-
Does anyone else think that it would be nice if the script window (the one that pops up in the lower left hand corner when a script runs) had a few more options ?
It would be nice to be able to specify the size and postion - maybe as part of the OSD menu dialogs ?
Not sure if this is common on all cameras, but on both my cameras the window has a tendency to disappear too quickly, especially when runnning lua commands via ptp. How about an option to leave it on the screen once activated until a reboot ?
I hacked both of these things in a custom build by editing the source (changed number of lines and inserted a console_draw into the spy_task loop in main.c) and I find them pretty useful.
Is it worth adding these options to the core build ?
-
You can change the script window layout from script with set_console_layout.
There is currently some weirdness with the way ptp script switches in and out of alt mode, mentioned here http://chdk.wikia.com/wiki/Lua/PTP_Scripting (http://chdk.wikia.com/wiki/Lua/PTP_Scripting)
If you manually go into alt mode when using ptp, the console will stick around.
-
--> http://chdk.wikia.com/wiki/Script_commands#set_console_layout (http://chdk.wikia.com/wiki/Script_commands#set_console_layout) & following...
-
--> http://chdk.wikia.com/wiki/Script_commands#set_console_layout (http://chdk.wikia.com/wiki/Script_commands#set_console_layout) & following...
It turns out set_console_layout does not work (at least prior to trunk1314 - reyalp just fixed it). And the syntax in the wiki for set_console_layout was wrong so I fixed that.
-
--> http://chdk.wikia.com/wiki/Script_commands#set_console_layout (http://chdk.wikia.com/wiki/Script_commands#set_console_layout) & following...
It turns out set_console_layout does not work (at least prior to trunk1314 - reyalp just fixed it). And the syntax in the wiki for set_console_layout was wrong so I fixed that.
Did not work in ubasic. Was fine in lua.