Search found 9 matches

by aldebaran99
Fri Mar 01, 2024 10:19 pm
Forum: Scripting
Topic: Cancel/Stop a running single frame exposure
Replies: 6
Views: 821

Re: Cancel/Stop a running single frame exposure

Hi Robin, using the hints and code snippets you gave me I meanwhile managed to write a set of scripts that can do what I want: execute sequences of exposures, that can be started and stopped from the "outside", including from another machine. For monitoring when "CaptureSingleFrameToA...
by aldebaran99
Fri Mar 01, 2024 10:15 pm
Forum: Scripting
Topic: Scripting SharpCap from external program
Replies: 8
Views: 925

Re: Scripting SharpCap from external program

admin wrote: Fri Mar 01, 2024 10:47 am That ought to be possible... I will look
That would be GREAT!

Matt
by aldebaran99
Fri Mar 01, 2024 10:34 am
Forum: Scripting
Topic: Scripting SharpCap from external program
Replies: 8
Views: 925

Re: Scripting SharpCap from external program

Unfortunately there is no way to launch the console from within a script or on startup. The only options you have in that area are to run a script on startup using either the startup script settings or the /runscript command line parameter. I can live with that, but I really wish the console window...
by aldebaran99
Fri Mar 01, 2024 10:31 am
Forum: Scripting
Topic: Cancel/Stop a running single frame exposure
Replies: 6
Views: 821

Re: Cancel/Stop a running single frame exposure

Hi Robin, thanks for your explanations, this is most interesting. I was not aware of the fact, that here a notification might not be received because a process is too busy. I remember "Application.DoEvents" from other situations, where a WindowsForm can be prevented from being locked this ...
by aldebaran99
Thu Feb 29, 2024 7:32 pm
Forum: Scripting
Topic: Cancel/Stop a running single frame exposure
Replies: 6
Views: 821

Re: Cancel/Stop a running single frame exposure

Hi Robin, at the moment I stop a running async-exposure with StopCapture() import sys import time filename="D:\\SCTests\\testexposure.fits" exptime=8000 SharpCap.SelectedCamera.Controls.Exposure.Value=exptime SharpCap.SelectedCamera.CaptureSingleFrameToAsync(filename) time.sleep(3) # this ...
by aldebaran99
Thu Feb 29, 2024 1:28 pm
Forum: Scripting
Topic: Cancel/Stop a running single frame exposure
Replies: 6
Views: 821

Cancel/Stop a running single frame exposure

Hi, my script does a sequence of single frame exposures of e.g. 120 seconds, here the relevant lines: filename="D:\\SCTests\\testexposure.fits" exptime=120000 SharpCap.SelectedCamera.Controls.Exposure.Value=exptime SharpCap.SelectedCamera.CaptureSingleFrameTo(filename) Now sometimes I need...
by aldebaran99
Tue Feb 27, 2024 10:30 pm
Forum: Scripting
Topic: Scripting SharpCap from external program
Replies: 8
Views: 925

Re: Scripting SharpCap from external program

Hi, thanks, I did read the thread you mention last night ( I searched the whole subforum for informations about scripting and my problem...) I also saw, that Pyro is rather complicated (to me) and maybe a little overcomplex for the simple things I want to achieve. I will study the webserver and Pyro...
by aldebaran99
Mon Feb 26, 2024 7:08 pm
Forum: Scripting
Topic: Scripting SharpCap from external program
Replies: 8
Views: 925

Re: Scripting SharpCap from external program

Hi Robin, thank you for the response! What a pity, from MaximDl I am used to be able to control nearly anything from outside, what is very comfortable for customizing everything. I am running a dual setup and have a DIY software environment to control everything (I don't use NINA). So I will look in...
by aldebaran99
Mon Feb 26, 2024 10:22 am
Forum: Scripting
Topic: Scripting SharpCap from external program
Replies: 8
Views: 925

Scripting SharpCap from external program

Hi, I know the basics of coding in c#, but am rather new to python. I would like to initate exposures in SharpCap from an external program, for example Win Explorer (or cmd, batch or another C#-program). I have a python script snippet, that basically does what I want, but it's working only when exec...