if App was closed disconnecting ComObjConnect(Obj) fails

Get help with using AutoHotkey and its commands and hotkeys
alllala
Posts: 17
Joined: 03 Apr 2014, 05:04

if App was closed disconnecting ComObjConnect(Obj) fails

12 Sep 2014, 12:47

I´m using Foobar with Com http://www.autohotkey.com/board/topic/5 ... ntry622731 but having trouble disconnecting the event-handle when foobar was closed premature. I then get an error message saying the RPC Server is unavailable.

Is it possible at all to disconnect the Object, if foobar is closed?

This happens if I restart my PC. Foobar is closed before my script and the error message prevents then the restart.
lexikos
Posts: 6652
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: if App was closed disconnecting ComObjConnect(Obj) fails

12 Sep 2014, 20:34

Without the remote process in which the object really lives, there is no connection to disconnect. ;)

You can suppress the error message using ComError(0) or Try.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], BreezeB, flyingDman, Google [Bot], Gully, mehrez1989, SuperFoobar, teadrinker, Xtra and 218 guests