script window changes ? - Feature Requests - CHDK Forum  

script window changes ?

  • 4 Replies
  • 1759 Views
script window changes ?
« on: 04 / September / 2011, 13:37:59 »
Advertisements
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 ?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 13142
Re: script window changes ?
« Reply #1 on: 04 / September / 2011, 15:39:11 »
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

If you manually go into alt mode when using ptp, the console will stick around.
Don't forget what the H stands for.

*

Offline fe50

  • ******
  • 3131
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: script window changes ?
« Reply #2 on: 04 / September / 2011, 18:29:08 »

Re: script window changes ?
« Reply #3 on: 04 / September / 2011, 19:12:16 »
--> 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.

« Last Edit: 04 / September / 2011, 19:14:04 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline reyalp

  • ******
  • 13142
Re: script window changes ?
« Reply #4 on: 04 / September / 2011, 19:22:22 »
--> 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.
Don't forget what the H stands for.

 

Related Topics