« Reply #10 on: 07 / July / 2008, 04:07:41 »
You can use the shut-down command to switch the camera off. You'll just need a bit of logic in the loop that's waiting for power to be applied - count seconds in there and if the counter gets to 60 then shut down.
Something like this ought to work:
@title remote shutter script with auto-shutdown
@param t shutdown delay in seconds (0 = never)
@default t 60
if t = 0 then t = 64000
while 1
i = get_day_seconds
do
j = get_day_seconds - i
if j > t then shut_down
a = get_usb_power
until a>0
shoot
wend
end
« Last Edit: 07 / July / 2008, 05:28:50 by zeno »
Logged
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit