Wiki scripting cross reference links broken - General Discussion and Assistance - CHDK Forum supplierdeeply

Wiki scripting cross reference links broken

  • 3 Replies
  • 1198 Views
*

Offline lapser

  • *****
  • 1093
Wiki scripting cross reference links broken
« on: 22 / March / 2013, 18:14:02 »
Advertisements
http://chdk.wikia.com/wiki/CHDK_Scripting_Cross_Reference_Page
Some of the links accesed from above are broken. Here's an example:

http://chdk.wikia.com/wiki/Script_commands#set_console_autoredraw

Also, is there any way to get rid of the console completely while running a script?

Any way to get rid of the bottom line with the name of the script and <ALT> while staying in <alt> mode?
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

Re: Wiki scripting cross reference links broken
« Reply #1 on: 22 / March / 2013, 18:24:20 »
Some of the links accesed from above are broken. Here's an example:
http://chdk.wikia.com/wiki/Script_commands#set_console_autoredraw
I'm not sure what you mean by "accesed from above"?  If I go to the wiki page for scritping cross reference,  scroll down (or search on the page)  to set_console_autoredraw and then click on it,  it takes me to the right point in the Script Command page.

Quote
Also, is there any way to get rid of the console completely while running a script?
Any way to get rid of the bottom line with the name of the script and <ALT> while staying in <alt> mode?
I don't think so for either question.  But given the existence of the Lua "draw" commands I can see that it would be a nice feature to have (especially as the text console is almost useless when the Canon floating focus window is active in shooting mode).   Might be a good idea to modify set_console_autoredraw(-1) to actually remove the console window ?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline lapser

  • *****
  • 1093
Re: Wiki scripting cross reference links broken
« Reply #2 on: 22 / March / 2013, 19:18:37 »
I'm not sure what you mean by "accesed from above"?  If I go to the wiki page for scritping cross reference,  scroll down (or search on the page)  to set_console_autoredraw and then click on it,  it takes me to the right point in the Script Command page.
Hmm, it's working now. I guess the Phantom of the CHDK Opera fixed it. Thanks!
Quote
Might be a good idea to modify set_console_autoredraw(-1) to actually remove the console window ?
Yes, that would work. It would be nice if it also disabled the bottom line with the script name too.

I tried set_console_layout(0,0,0,0) and that gave me the default console. With set_console_layout(0,0,45,0) the console doesn't appear, then the camera crashes. With a 2 line console, it occasionally shows the wrong lines. Maybe the whole console needs to be re-worked?

draw_string() does give you a lot more flexibility, but it's nice to have the option for a console too. I'm not sure if draw_string gets refreshed either, so it might disappear with the next shot.
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

Re: Wiki scripting cross reference links broken
« Reply #3 on: 22 / March / 2013, 19:27:18 »
Maybe the whole console needs to be re-worked?
Probably.  When philmoz added the code to detect a single pixel change in the corner of the LCD and repaint the menus it really didn't anticipate what a mess the floating focus windows makes in newer cameras. 

Quote
draw_string() does give you a lot more flexibility, but it's nice to have the option for a console too. I'm not sure if draw_string gets refreshed either, so it might disappear with the next shot.
It does.
Ported :   A1200    SD940   G10    Powershot N    G16


 

Related Topics