Based on tpont's post
http://chdk.setepontos.com/index.php?topic=6231.msg90959#msg90959, I decided to use AutoHotKey [
http://www.autohotkey.com/] to start some CLI testing with my SX150IS. The PC is Win 7, 64 bit.
My CHDK was built using CHDK-Shell:
***Build Info***, CHDK Ver: CHDK 1.3.0-3187, Revision: 0, Date: Oct 28 2013, Time: 11:21:49, Camera: sx150is, FW Vers: 100a, Compiler: GCC 4.4.0
For chdkptp, I used [the easy way out]:
chdkptp-r438-win32 from here
https://www.assembla.com/spaces/chdkptp/documentsHere's the first AutoHotKey script I used:
;***a semicolon denotes comment in AutoHotKey
IfWinExist C:\CHDK\chdkptp\chdkptp-r438-win32\chdkptp.exe
{
WinActivate
}
else
{
Run C:\CHDK\chdkptp\chdkptp-r438-win32\chdkptp.exe -i
WinWait C:\CHDK\chdkptp\chdkptp-r438-win32\chdkptp.exe
WinActivate
}
Send connect{Enter}
Send rec{Enter}
; notes:
;(i)camera changes to record & goes black after exactly 1 minute and camera shuts down after exactly 3 mins
;(ii) if , between 1 and 3 mins [i.e camera not shutdown], "Send shoot(){Enter}" --> then picture is taken.
So,
with usb already connected between PC and camera, I power-on camera which starts in playback. I then run the script and the
- camera changes to record. The LCD then goes black after exactly 1 minute and subsequently shuts down after exactly 3 mins
- if , between 1 and 3 mins [i.e camera not shutdown], "Send shoot(){Enter}" --> then picture is taken
Am I doing something silly ? [hope so] or is this a similar problem to that reported by ant_thomas, described here:
http://chdk.setepontos.com/index.php?topic=6231.msg95142#msg95142Please find romlog attached.
Further:
Based on this post
http://chdk.setepontos.com/index.php?topic=6231.msg90966#msg90966 I created the following AutoHotKey script to test the chdkptp "-r" option:
;***semicolon denotes comment in AutoHotKey
IfWinExist C:\CHDK\chdkptp\chdkptp-r438-win32\chdkptp.exe
{
WinActivate
}
else
{
; Run C:\CHDK\chdkptp\chdkptp-r438-win32\chdkptp.exe -i -rmcinit.chdkptp
; WinWait C:\CHDK\chdkptp\chdkptp-r438-win32\chdkptp.exe
; WinActivate
;***had to include the complete Win7 64bit path name for the '-r' option to work:-
Run C:\CHDK\chdkptp\chdkptp-r438-win32\chdkptp.exe -i -rC:\CHDK\chdkptp\chdkptp-r438-win32\mcinit.chdkptp
WinWait C:\CHDK\chdkptp\chdkptp-r438-win32\chdkptp.exe
WinActivate
}
;Send source mcshoot.chdkptp{Enter}
;***again, had to include the complete Win7 64bit path name for this to work:-
Send source C:\CHDK\chdkptp\chdkptp-r438-win32\mcshoot.chdkptp{Enter}
Send {!}mc:cmdwait('exit'){Enter}
;------------------------------------------------------------------------------------------------------------
;------------------------------------------------------------------------------------------------------------
;File content of mcinit.chdkptp:-
;# load the multicam module
;!mc=require('multicam')
;# connect to all cameras
;!mc:connect()
;# initialize script on the cameras
;!mc:start()
;# initialize timing
;!mc:init_sync()
;# switch cameras to rec mode
;!mc:cmdwait('rec')
;------------------------------------------------------------------------------------------------------------
;------------------------------------------------------------------------------------------------------------
;File content of mcshoot.chdkptp:-
;# half press the shutter to focus
;!mc:cmdwait('preshoot')
;# shoot, 100ms after cmd issued
;!mc:cmdwait('shoot',{syncat=100})
;------------------------------------------------------------------------------------------------------------
;------------------------------------------------------------------------------------------------------------
;***Build Info***
;CHDK Ver: CHDK 1.3.0-3187
;Revision: 0
;Date: Oct 28 2013
;Time: 11:21:49
;Camera: sx150is
;FW Vers: 100a
;Compiler: GCC 4.4.0
This works.
I was surprised that I had to use the full Win7 path name in the code -
should I have been [surprised] ?
is there an entry in "some" config file that the path name can be written to ?
[I have briefly reviewed USAGE.TXT for an answer. Under Windows [for me] - the answer isn't patently obvious
]
Any comment appreciated.
PS: both "mcinit.chdkptp" & "mcshoot.chdkptp" were copied to the same directory as chdkptp.exe
PPS: working from front to back, I still haven't got past [this] thread page 28 - so if there's later answers, apologies !