simple change to a script - Script Writing - CHDK Forum

simple change to a script

  • 2 Replies
  • 2666 Views
*

Offline bugbear

  • **
  • 57
  • A630
    • woodwork on geocities
simple change to a script
« on: 29 / October / 2010, 10:10:29 »
Advertisements
I'm using Ultra_Intervalometer (http://chdk.wikia.com/wiki/UBASIC/Scripts:_Ultra_Intervalometer).

I want to pre-set the focus (actually, I want to use auto-focus on a half touch, and then focus lock), but allow the camera to adjust the exposure under aperture priority mode during the script run.

If I want my camera to behave as if I'd simply full-pressed the shutter button, what do I replace the scripts
Code: [Select]
"shoot" command with?

Is it as simple as
Code: [Select]
press "shoot_full"
    BugBear

*

Offline reyalp

  • ******
  • 14126
Re: simple change to a script
« Reply #1 on: 29 / October / 2010, 12:36:27 »
If you want to emulate a quick shutter press, you should probably do shoot_half and shoot_full in quick succession, and release them in reverse order when done.
e.g.

Code: [Select]
press "shoot_half"
press "shoot_full"
sleep 10
release "shoot_full"
release "shoot_half"
you could also try
click "shoot_full"

In general, when scripting button presses, it's a good idea to make them as close to what a human would do as possible.


Also note that some CHDK ports have issues with raw and/or overrides (including script overrides) if you press the shutter quickly.
Don't forget what the H stands for.

simple change to a script
« Reply #2 on: 10 / November / 2010, 18:30:57 »
I dont know why but Im getting alot of errors with this script. it first says tabs instead of spaces so i fix that then i get about 30 other errors from that. Could it be that Im using SVN 10068?
_________________
http://www.ps2netdrivers.net/manual/canon.eos.rebel.xs.18-55is.kit/

 

Related Topics


SimplePortal © 2008-2014, SimplePortal