if App was closed disconnecting ComObjConnect(Obj) fails

Get help with using AutoHotkey (v1.1 and older) 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: 9678
Joined: 30 Sep 2013, 04:07
Contact:

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 (v1)”

Who is online

Users browsing this forum: Bing [Bot], wjt936826577 and 154 guests