Sign in to follow this  
Followers 0
oren

Wired... Please help..

3 posts in this topic

#1 ·  Posted (edited)

My object calling dont work...

It did work

But now suddenly it does not...

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET","http://www.AutoItScript.com")
$oHTTP.Send()
$HTMLSource = $oHTTP.Responsetext

Give me this:

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Temp\18-9\AMP\ll.au3" 
C:\Temp\18-9\AMP\ll.au3 (2) : ==> Variable must be of type "Object".: 
$oHTTP.Open("GET","http://www.AutoItScript.com") 
$oHTTP^ ERROR
>Exit code: 1   Time: 0.215
Edited by oren

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

@Oren...See what the error is....

$oMyError = ObjEvent("AutoIt.Error","MyErrFunc"); Install a custom error handler

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET","http://www.AutoItScript.com")
$oHTTP.Send()
$HTMLSource = $oHTTP.Responsetext


; This is my custom error handler 
Func MyErrFunc() 
   $HexNumber=hex($oMyError.number,8) 
   Msgbox(0,"","We intercepted a COM Error !" & @CRLF & _
                "Number is: " & $HexNumber & @CRLF & _
                "Windescription is: " & $oMyError.windescription ) 

   $g_eventerror = 1; something to check for when this function returns 
Endfunc
Edited by DjDeep00

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Well thank you very much...

This will help me to advance in the Object filed...

AnyWay..

The error is the same one as the OLE/COM Object Viewer

8007007E

The specified module could not be found.

Its wired because i do have the dll in windows/system32/winhttp.dll

Maybe i'll downlaod a new one, and replace the current one i have.

Let see if i can find him...

EDIT:

Wired again I've downloaded a new one and still it say the same error...

Maybe its not registered in the registry?

But i dont know how to handle the registry..

Any help?

EDIT2:

hell who know i changed the location of the dll in OLE/COM Object Viewer to the same location that it was set on and now its working thank you.

Edited by oren

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0