Am 27/08/19 um 03:38 schrieb zsolt.kal...@eli-alps.hu:
> I would like to ask, if its possible to connect to a windows
> service somehow with pywin32?
> 
> 
> I can connect to a running LabView application
> with Dispatch("LabView.Application") without a problem. If I make an
> executable from the LabView app, connecting to it is no problem either. 
> 
> But the final goal is that .exe to be run as a background service, I
> used NSSM for that.
> 
> So The LabView app is now running as an .exe, and it runs constantly as
> a background service when the computer starts. If the LabView runs as
> a service, I'm no longer able to reach it with
> Dispatch("LabView.Application"). Is there a workaround for that problem?
> How can I connect to a service? Is there like a
> Dispatch("LabView.Service") or something?

There has been a similar question some time ago. I guess that the
compiled exe has no COM interface, so there is no way to communicate
with it. But both python and LabView can communicate via sockets, so I
suggest to try it that way.

Christian


> 
> Regards,
> THunter
> 
> ------------------------------------------------------------------------
> 
> A jelen email útján megküldött vélemény vagy információ kizárólag a
> küldő személyéhez kapcsolódik és nem feltétlenül jeleníti meg az ELI-HU
> Nonprofit Kft. álláspontját is. Társaságunk nem vállal felelősséget az
> email tartalmáért, ide értve különösen, de nem kizárólagosan
> kötelezettségvállalást jogi kötő erővel bíró szerződések létrehozásáért,
> módosításáért vagy megszűntetéséért, valamint az átadott információ
> alapján indult eljárásokért mindaddig, amíg az adott információt utólag
> és írásban a megfelelően meghatalmazott vagy az ELI-HU Nonprofit Kft.
> képviseleti jogával felruházott személy meg nem erősíti. Az email
> bizalmas vagy jogilag védett információt tartalmazhat, amelyet kizárólag
> a címzett személy vagy szervezet, illetve az általuk felhatalmazottak
> használhatnak fel. Amennyiben Ön nem az üzenet címzettje, kérjük,
> értesítse erről az üzenet küldőjét és törölje az üzenetet rendszeréből.
> A jelen email tartalmának nem a címzett általi bármilyen formában
> történő illetéktelen közzététele, terjesztése, másolása, illetve
> felhasználása vagy alkalmazása szigorúan tilos és jogszabályba ütközhet.
> 
> 
> Please note that any information or opinions presented in this email are
> solely those of the sender and do not necessarily represent those of
> ELI-HU Nonprofit Ltd. Our Company accepts no liability or responsibility
> for the content of this email, especially, but not limited to commitment
> for establishing, modifying or terminating legally binding contracts, or
> for the consequences of any actions taken on the basis of the
> information provided, unless that information is subsequently confirmed
> in writing by a person duly authorized or endowed with the right of
> representation of ELI-HU Nonprofit Ltd. This email may contain
> confidential or legally protected information, and is intended solely
> for the use of the individual or entity to whom it is addressed and
> others authorized to receive it. If you are not the intended recipient
> of this email, please inform the sender immediately and delete it from
> your system. Any unauthorized disclosure, dissemination, copying or use
> of or reliance upon the content of this email by anyone other than the
> intended recipient is strictly prohibited and may be unlawful.
> 
> 
> _______________________________________________
> python-win32 mailing list
> python-win32@python.org
> https://mail.python.org/mailman/listinfo/python-win32
> 

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to