Draw audio levels script - page 3 - LUA Scripting - CHDK Forum supplierdeeply

Draw audio levels script

  • 22 Replies
  • 9006 Views
Re: Draw audio levels script
« Reply #20 on: 11 / April / 2012, 13:08:28 »
Advertisements
Script should not run outside of alt mode. (note if you run a script over PTP, it's a bit confused, but it's alt mode as far as the script is concerned)
In what mode does a "run script on startup" mode script run ?


So it seems that we have some inconsistence in CHDK - on my sx130is scripts work outside ALT mode. I have seen that many times and used this. For me it's a feature, not a bug...
Does this depend on whether you are using the dev or stable release ?
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Draw audio levels script
« Reply #21 on: 11 / April / 2012, 18:00:13 »
I use dev release and even a little bit old (1715) but as far as I remember I never had problems with any intervalometers when I have switched from/to ALT mode - they just count seconds no matter in which mode... I can't be sure that this is how things were always, but it seems to true now for my camera.  I have no enough time now to test stable release...

I can't do many tests now, but a few that I did with my intervalometer: ( http://chdk.setepontos.com/index.php?topic=7757.0 ) show that in general:

- script updates the brightness chart (uses drawings) so it is runing somehow,
- console is not visible,
- script can't take a photo nor press shoot_half.

if (2*b || !2*b) {
    cout<<question
}

Compile error: poor Yorick

*

Offline philmoz

  • *****
  • 3441
    • Photos
Re: Draw audio levels script
« Reply #22 on: 11 / April / 2012, 19:14:40 »
Does this depend on whether you are using the dev or stable release ?

On my G12 and SX40 the trunk version works (bars display after leaving ALT mode); but the release-1.0 version doesn't (no bars displayed).

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

 

Related Topics