Search found 19 matches

by michastro
Tue Oct 24, 2023 1:51 pm
Forum: Scripting
Topic: No capture with a script in python
Replies: 5
Views: 6481

Re: No capture with a script in python

A ZWO 6200
by michastro
Tue Oct 24, 2023 1:14 pm
Forum: Scripting
Topic: No capture with a script in python
Replies: 5
Views: 6481

Re: No capture with a script in python

Thanks as usally for your help Robin,
In fact after a lot of different tests, the cameras was working in Ascom mode, but not in native SharpCap mode, I had to shut down the camera AND the PC (to shut down USB) to unlock the camear, and now the script is working!
Michel
by michastro
Sun Oct 22, 2023 4:02 pm
Forum: Scripting
Topic: No capture with a script in python
Replies: 5
Views: 6481

No capture with a script in python

Hello, I have a script wich seems to work fine except thatr nothing is captured!! Here is my script: from time import sleep from System import TimeSpan from SharpCap.UI import CaptureLimitType delay =30 SharpCap.SelectedCamera = SharpCap.Cameras[0] SharpCap.SelectedCamera.Controls.FindByName("T...
by michastro
Thu Jul 06, 2023 7:28 pm
Forum: Scripting
Topic: unknown encoding error
Replies: 2
Views: 6049

Re: unknown encoding error

I have found a solution. I have written a program in Delphi wich call SharpCap via ShellExecute. Now in Nina I call my .exe and not the .bat. Everything
is OK now!! I don't know why, but it doesn't matter.
Thanks
Michel
by michastro
Thu Jul 06, 2023 1:58 pm
Forum: Scripting
Topic: unknown encoding error
Replies: 2
Views: 6049

unknown encoding error

Hello, I have a script wich work perfectly when launch via a .bat file: "C:\Program Files\SharpCap 4.1 (64 bit)\SharpCap.exe" /runscript "C:\Users\michel\Documents\Sharpcap\Occultation.py" But, when this .bat is called via NINA, I have this error in the IronPython console: Traceb...
by michastro
Mon May 22, 2023 7:25 pm
Forum: Scripting
Topic: Insert timestamp with a python script
Replies: 22
Views: 14041

Re: Insert timestamp with a python script

Hello Robin,
Congratulations!! Everythings is ok, the .py start properly and the exit command works also in the python script.
Thanks a lot
Michel
by michastro
Tue May 16, 2023 7:30 pm
Forum: Scripting
Topic: Insert timestamp with a python script
Replies: 22
Views: 14041

Re: Insert timestamp with a python script

no no, NINA launch Sharpcap, with the extension /runscript to use a python script, when finished, Nina continus its work. But sure, Sharpcap is the best program for occultation with the tilmestamp inserted in the .ser video.
by michastro
Tue May 16, 2023 6:30 pm
Forum: Scripting
Topic: Insert timestamp with a python script
Replies: 22
Views: 14041

Re: Insert timestamp with a python script

Hello Jean-François, My goal is to have an automatic session with NINA. For example, take pictures during the night, after at a precise hour point in the direction of occultation, next launch automaticly Sharpcap with a script in Python, and after come back to NINA and continue the night. All these ...
by michastro
Tue May 16, 2023 12:32 pm
Forum: Scripting
Topic: Insert timestamp with a python script
Replies: 22
Views: 14041

Re: Insert timestamp with a python script

I have tried without success, but I am not a reference in Python. Otherwise for instance, launch a python script directlt at the start of SharpCap works only with beta 4.1 version, and there is az confirmation message of Sharpcap before the start, so not very usefull, but Robin works on it, and agai...
by michastro
Mon May 15, 2023 3:52 pm
Forum: Scripting
Topic: Insert timestamp with a python script
Replies: 22
Views: 14041

Re: Insert timestamp with a python script

Thanks a lot Robin, now the script in python can start from a .bat, BUT, there is a blocking windows that tells that it's a beta version before the script, so it's unusable. A last thing too, I try to close Sharpcap with a python instruction, but I am still stupid in Python, I can't find it. Thanks ...