Re: APCC -- conflict using THUM device


Ray Gralak
 

Hi Barry,

But I do need to add a test to check whether APCC is running or not, as otherwise
trying to get the temperature this way starts APCC, which then exits after a few
seconds. Better behavior is to just use the THUM directly when APCC isn't
running.
The easiest way is to check if the APCC process is running. Here is an example VBScript code snippet that would do that:

set service = GetObject ("winmgmts:")

for each Process in Service.InstancesOf ("Win32_Process")
If Process.Name = "AstroPhysicsCommandCenter.exe" then
wscript.echo "APCC Running"
wscript.quit
End If
next
wscript.echo "APCC is not running"

-Ray Gralak
Author of APCC (Astro-Physics Command Center): http://www.astro-physics.com/index.htm?products/accessories/software/apcc/apcc
Author of PEMPro: http://www.ccdware.com
Author of Astro-Physics V2 ASCOM Driver: http://www.gralak.com/apdriver
Author of PulseGuide: http://www.pulseguide.com
Author of Sigma: http://www.gralak.com/sigma

-----Original Message-----
From: ap-gto@yahoogroups.com [mailto:ap-gto@yahoogroups.com]
Sent: Wednesday, December 30, 2015 11:50 PM
To: ap-gto@yahoogroups.com
Subject: [ap-gto] Re: APCC -- conflict using THUM device



Works great. Thanks.

But I do need to add a test to check whether APCC is running or not, as otherwise
trying to get the temperature this way starts APCC, which then exits after a few
seconds. Better behavior is to just use the THUM directly when APCC isn't
running.

- Barry

Join main@ap-gto.groups.io to automatically receive all group messages.