set_zoom at startup (noob) - page 2 - Script Writing - CHDK Forum

set_zoom at startup (noob)

  • 13 Replies
  • 3530 Views
Re: set_zoom at startup (noob)
« Reply #10 on: 18 / July / 2012, 22:29:52 »
Advertisements
So did the last script I posted work as you described in both modes ?  No crash - zooms to 90% in normal or startup mode ?   (sorry .. this is painful but the details matter a lot !)

Yes, they did.

Your hack works but unfortunately the results are inconsistent. I played with the sleep time but the lens sometimes stops at step 2, other times in step 3 or 4.

Good try anyway, I appreciate.

Re: set_zoom at startup (noob)
« Reply #11 on: 18 / July / 2012, 22:47:22 »
Your hack works but unfortunately the results are inconsistent. I played with the sleep time but the lens sometimes stops at step 2, other times in step 3 or 4.
Good try anyway, I appreciate.
It wasn't actually a try to solve your problem - sorry.  The change in sleep time was never intended to give an exact zoom positiion.  I'm just trying to establish what works and doesn't. 

Right now it looks like :

1) [ press / click / release ] zoom_in works in both startup script and regular script modes.
2) set_zoom  works in regular script mode. Unclear if it works in startup script mode.
3) exit_alt appears to crash camera in startup script mode.   Effect unclear in regular script mode.

Did I miss anything here ?

If not,  what does this script do in startup script mode ?

Code: [Select]
sleep 1000
set_zoom 3
end
Ported :   A1200    SD940   G10    Powershot N    G16

Re: set_zoom at startup (noob)
« Reply #12 on: 20 / July / 2012, 14:43:19 »
I did

@title ZomTst8a

sleep 1000
set_zoom 3
end

set_zoom works most times, but if I repeat that script manually, the observations are strange and some times, the camera shuts off, when I ran the script the third time: 1. time = autorun (after this, manually zoom is off), I switched to playback and back; (manually) zoom out = no function (shows zoom bar as if completely zoomed out), zoom in = function AND THEN also zoom out works(!!), ran script (works), (manually zoom = off). Switch to play and back, manually zoom out and in (o.k.), start script the 3rd time. (ROMLOG-test8a1..a2..a3 ) These shut-offs seem to be connected to manually zoom tests. I couldn't reproduce it always. I also observed this shut-off 2 or 3 times directly when the script ran as autorun, but couldn't reproduce this (ROMLOG-test8a4) - possibly it is connected to the change from ZomTst8b to ZomTst8a.

I tried then:

@title ZomTst8b

sleep 1000
set_zoom 3
sleep 1000
set_zoom 5
end

This shows (when I restart the script directly), if the zoom still works - it does! Only the zoom switch lost it's function. Here I couldn't provoke a shut off of the camera. The zoom switch worked (or better: didn't work) as before.

Ruedi

Oh - forgot: it's the 1993-build
I should be more precise: ixus115_elph100hs-101b-1.1.0-1993_BETA
« Last Edit: 20 / July / 2012, 15:15:02 by RueLue »
Ixus 115 HS / firmw.1.01b - using and testing the new beta - CHDK-beginner - Europe

Re: set_zoom at startup (noob)
« Reply #13 on: 21 / August / 2012, 16:36:38 »
Hi, I have the same problem, so I subscribe to this topic instead my one ( http://chdk.setepontos.com/index.php?topic=8573.0 )

In my script I mainly use set_zoom_rel() in the final version, but that also has the same problem. I didn't experience any shut downs, just lost function of zoom keys. SX150 IS.


 

Related Topics