General Scripting from the command line - various options?

Support and help for digiCamControl (no bug report)
Post Reply
surfacenikon
Posts: 4
Joined: Thu Sep 06, 2018 10:16 pm

General Scripting from the command line - various options?

Post by surfacenikon » Fri Jun 12, 2020 2:17 am

Hi all-

I've been using DigiCamControl successfully with one camera; things work pretty well, with commands like:

Code: Select all

"C:\Program Files (x86)\digiCamControl\cameracontrolcmd.exe" /filename test.jpg /iso 100 /shutter 1/60 /capture
This above command works when DigiCamControl is *not* running.

With CameraControlRemoteCmd.exe, you can do things in a Windows batch file like the following. This is useful when using multiple cameras.

Code: Select all

"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set camera 123456
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set iso 100
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set shutterspeed 1/100

"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set camera 987654
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set iso 2000
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set shutterspeed 1/50

"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set camera 123456
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c capture c:\pictures\right.jpg
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c set camera 987654
"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c capture c:\pictures\left.jpg
In this case, DigiCamControl *is* running.

Is there any way to bunch up the commands given to CameraControlRemoteCmd.exe; i.e. to set iso and shutter in the same line?

I know there are other methods of scripting (TCL), but that requires you to install a TCL widget, as far as I know. The final goal is to have something that can be driven by a Python program, so we can have maximum flexibility, but be relatively quick. The above method works, but isn't as fast as I'd like. If the settings of the camera don't change, you can use the command:

Code: Select all

"C:\Program Files (x86)\digiCamControl\cameracontrolremotecmd.exe" /clean /c do CaptureAll c:\pictures\both.jpg
... to get all pictures, and figure out which camera took which picture via the EXIF data and the serial number of the camera which is buried in that EXIF data.

General Scripting from the command line - various options?

Advertisment
 

lagrandeours
Posts: 4
Joined: Sat Jan 25, 2020 11:51 pm

Re: General Scripting from the command line - various options?

Post by lagrandeours » Thu Sep 10, 2020 10:31 am

hello where do you get all the commands line ? like set iso etc ...

lagrandeours
Posts: 4
Joined: Sat Jan 25, 2020 11:51 pm

Re: General Scripting from the command line - various options?

Post by lagrandeours » Thu Sep 10, 2020 11:02 am

in cmd : CameraControlRemoteCmd.exe /c list cmds

lagrandeours
Posts: 4
Joined: Sat Jan 25, 2020 11:51 pm

Re: General Scripting from the command line - various options?

Post by lagrandeours » Thu Sep 10, 2020 11:13 am

here are all the commands

but there is one missing for me : LiveViewWnd_FullScreen ...
is thare any shortcut ?
thanks for your help

["All_Close",
"All_Minimize",
"AstroLiveViewWnd_Hide",
"AstroLiveViewWnd_Show",
"BarcodeWnd_Hide",
"BarcodeWnd_Show",
"BrowseWnd_Hide",
"BrowseWnd_Show",
"BulbCaptureStart",
"BulbCaptureStop",
"BulbScriptStart",
"BulbScriptStop",
"BulbWnd_Hide",
"BulbWnd_Show",
"CameraPropertyWnd_Hide",
"CameraPropertyWnd_Show",
"Capture",
"CaptureAll",
"CaptureNoAf",
"Del_Image",
"DownloadPhotosWnd_Hide",
"DownloadPhotosWnd_Show",
"EndBulb",
"FocusStackingWnd_Hide",
"FocusStackingWnd_Show",
"FullScreenWnd_Hide",
"FullScreenWnd_Show",
"FullScreenWnd_ShowTimed",
"Like_Image",
"LiveView_Capture",
"LiveView_CaptureSnapShot",
"LiveView_Focus",
"LiveView_Focus_M",
"LiveView_Focus_MM",
"LiveView_Focus_MMM",
"LiveView_Focus_Move_Down",
"LiveView_Focus_Move_Left",
"LiveView_Focus_Move_Right",
"LiveView_Focus_Move_Up",
"LiveView_Focus_P",
"LiveView_Focus_PP",
"LiveView_Focus_PPP",
"LiveView_ManualFocus",
"LiveView_NoProcess",
"LiveView_Preview",
"LiveView_Zoom_100",
"LiveView_Zoom_25",
"LiveView_Zoom_33",
"LiveView_Zoom_50",
"LiveView_Zoom_66",
"LiveView_Zoom_All",
"LiveViewWnd_Hide",
"LiveViewWnd_Maximize",
"LiveViewWnd_Message",
"LiveViewWnd_Show",
"LiveViewWnd_StartMotionDetection",
"LiveViewWnd_StartRecord",
"LiveViewWnd_StopMotionDetection",
"LiveViewWnd_StopRecord",
"MainWnd_Message",
"MultipleCamera_Reset",
"MultipleCamera_Start",
"MultipleCamera_Stop",
"MultipleCameraWnd_Hide",
"MultipleCameraWnd_Show",
"MultipleLiveView_Col",
"MultipleLiveView_Row",
"MultipleLiveView_Start",
"MultipleLiveView_Stop",
"MultipleLiveViewWnd_Hide",
"MultipleLiveViewWnd_Maximize",
"MultipleLiveViewWnd_Show",
"Next_Image",
"NextAperture",
"NextCamera",
"NextExposureCompensation",
"NextIso",
"NextSeries",
"NextShutter",
"NextWhiteBalance",
"Prev_Image",
"PrevAperture",
"PrevCamera",
"PrevExposureCompensation",
"PrevIso",
"PrevShutter",
"PrevWhiteBalance",
"PrintWnd_Hide",
"PrintWnd_Show",
"Refresh_Image",
"RefreshDisplay",
"ResetDevice",
"Restore",
"RotateLeft",
"RotateRight",
"ScriptWnd_Hide",
"ScriptWnd_Show",
"Select_Image",
"SelectAll_Image",
"SetLayout",
"SortCameras",
"StartBulb",
"StartZoomIn",
"StartZoomOut",
"StatisticsWnd_Hide",
"StatisticsWnd_Show",
"StopZoomIn",
"StopZoomOut",
"TagSelectorWnd_Hide",
"TagSelectorWnd_Show",
"TimeLapse_Start",
"TimeLapse_Stop",
"TimeLapseWnd_Hide",
"TimeLapseWnd_Show",
"Unlike_Image",
"ViewExplorer",
"ViewExternal",
"Zoom_Image_100",
"Zoom_Image_200",
"Zoom_Image_60",
"Zoom_Image_Fit",
"ZoomPoint",
"StartRecord",
"StopRecord

"];

Post Reply