COM error: 0x80010108

Get help with using AutoHotkey and its commands and hotkeys
Johana
Posts: 189
Joined: 02 May 2017, 02:34

COM error: 0x80010108

09 Nov 2017, 05:24

I am getting a error for: Until [doc](wb.busy)[/docs]

Any idea why? :(

Code: Select all

BarnetsPrsNr()
{
	global
Send, {Click 1126, 128}
Sleep, 50
SendInput, ^c
ClipWait, 2
if ErrorLevel
{
MsgBox, There was nothing to copy - Script exit initialized
ExitApp
}
StringMid, Byear, clipboard, 1, 4
StringMid, BMonth, clipboard, 5, 2
StringMid, BDay, clipboard, 7, 2
wb := ComObjCreate("InternetExplorer.Application")
wb.Visible := True
wb.Navigate("https://site.com/index.html")
IELoad(wb)
wb.Document.GetElementByID("bigyear").Value := BYear
wb.Document.GetElementByID("bigmonth").Value := BMonth
wb.Document.GetElementByID("bigday").Value := BDay
return
}

IELoad(wb)
{
	global
    If !wb    ;If wb is not a valid pointer then quit
        Return False
    Loop    ;Otherwise sleep for .1 seconds untill the page starts loading
        Sleep,100
    Until (wb.busy)
    Loop    ;Once it starts loading wait until completes
        Sleep,100
    Until (!wb.busy)
    Loop    ;optional check to wait for the page to completely load
        Sleep,100
    Until (wb.Document.Readystate = "Complete")
	Return True
}
Ideas? Thoughts? :(
User avatar
Blackholyman
Posts: 1281
Joined: 29 Sep 2013, 22:57
Facebook: socialjsz
Google: +Jszapp
Location: Denmark
Contact:

Re: COM error: 0x80010108

09 Nov 2017, 05:50

does it also say something like: "The object invoked has disconnected from its clients"?

if yes! then my take on it is that it is related to a change to a different trust zone.

It could be that, at least i know of IE destroying one COM object and Creating a new object as a result of the security that differentiates between trusted and untrusted zones.
Johana
Posts: 189
Joined: 02 May 2017, 02:34

Re: COM error: 0x80010108

09 Nov 2017, 07:06

Blackholyman wrote:does it also say something like: "The object invoked has disconnected from its clients"?

if yes! then my take on it is that it is related to a change to a different trust zone.

It could be that, at least i know of IE destroying one COM object and Creating a new object as a result of the security that differentiates between trusted and untrusted zones.
Hey B!

No idea what you just said. And yes, it does sayhh invoked has disconnected from its clients.. I've googled and tried the solutions suggested everywhere but it's not working.

I have a similar script running without problem. What do you mean with "between trusted and untrusted zones" and how can I fix this?
User avatar
Blackholyman
Posts: 1281
Joined: 29 Sep 2013, 22:57
Facebook: socialjsz
Google: +Jszapp
Location: Denmark
Contact:

Re: COM error: 0x80010108

09 Nov 2017, 08:31

let's assume your navigating from "about:Blank" to a "page on your intranet" or from a page on your companies intranet to i.e http://www.google.com you vil go from one security zone to another... this can make IE destory and recreate the COM object, you will not see this as it happens behind the scenes... giving you the error "disconnected from its clients"

I don't have a true workaround for this... but one thing you can try is to create the IE Object with a higher Integrity Level wb := ComObjCreate("InternetExplorer.ApplicationMedium") other then that you can try to recapture the IE object when you get the Error using try/catch and WBget()
Johana
Posts: 189
Joined: 02 May 2017, 02:34

Re: COM error: 0x80010108

09 Nov 2017, 09:10

Blackholyman wrote:let's assume your navigating from "about:Blank" to a "page on your intranet" or from a page on your companies intranet to i.e http://www.google.com you vil go from one security zone to another... this can make IE destory and recreate the COM object, you will not see this as it happens behind the scenes... giving you the error "disconnected from its clients"

I don't have a true workaround for this... but one thing you can try is to create the IE Object with a higher Integrity Level wb := ComObjCreate("InternetExplorer.ApplicationMedium") other then that you can try to recapture the IE object when you get the Error using try/catch and WBget()
That gave me a new error. The class is not a valid class :(
User avatar
Blackholyman
Posts: 1281
Joined: 29 Sep 2013, 22:57
Facebook: socialjsz
Google: +Jszapp
Location: Denmark
Contact:

Re: COM error: 0x80010108

09 Nov 2017, 09:17

wb := ComObjCreate("{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}") try that

Return to “Ask For Help”

Who is online

Users browsing this forum: Google [Bot], inseption86, Quisquose, Sir Teddy the First, TAC109 and 58 guests