First you need a pc program that automatically downloads pictures from the camera when the USB connection was detected, e.g.
CAM2PC (free version is ok).
Then you need a script that switch on/off the usb connection, for example this:
--[[
******************************
run script in autostart mode
******************************
@title USB upload
@param a Upload time
@default a 30000
@param b Delay
@default b 2000
]]
-- autostart disconnect USB
post_levent_to_ui("DisconnectUSBCable")
print("switch record mode")
sleep(b)
set_record(1)
sleep(b)
print("shoot")
sleep(b)
shoot()
sleep(b)
print("switch play mode")
sleep(b)
set_record(0)
sleep(b)
print("connect USB cable")
sleep(b)
-- connect USB
post_levent_to_ui("ConnectUSBCable")
-- delay for picture transfer
sleep(a)
-- disconnect USB
post_levent_to_ui("DisconnectUSBCable")
sleep(b)
print("disconnect USB cable")
print("shutdown cam")
sleep(b)
shut_down()
sleep(3000)
Connect your cam with pc. Run script in autostart mode. The Camera should be in play mode. The script will break the usb connection, switch to record mode and makes a photo. Reconnection usb, picture transfer if the pc program detects the camera, disconnection usb and shot down camera.
Note: I don't know if post_levent_to_ui("ConnectUSBCable/DisconnectUSBCable") works with your camera. Maybe you must play with the delays.
msl