AutoIt Forums: GUI with an embedded IE-object - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

GUI with an embedded IE-object Problem with embedded IE-object and certificates

#1 User is offline   Lemmens Peter 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 35
  • Joined: 06-December 05

Post icon  Posted 13 November 2007 - 08:40 PM

Hi everybody,

I tried to make a GUI with an embedded IE site...
It works fine for http://www.google.be (link 1)
But it fails for https://pronet.aspex.be/pronetEE/ (link 2) because the website needs a certificate.

I installed the certificate in Internet Explorer and link 2 works fine if tried in Internet Explorer but again does not work any more in the AutoIt-GUI.

I think it has something to to with the line ObjCreate("Shell.Explorer.2") in the _IECreateEmbedded() function (IE.au3-file)
I tried to replace it with ObjCreate("InternetExplorer.Application") but it fails also...

Can anybody help please.
Thanx,

Peter
[ autoIt ]    ( Popup )
#include <GUIConstants.au3> #include <IE.au3> _IEErrorHandlerRegister () $oIE = _IECreateEmbedded () $Gui = GUICreate("Pronet_NOK", @DesktopWidth/2, @DesktopHeight/2, -1, -1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $GUIActiveX = GUICtrlCreateObj($oIE, -1, -1, @DesktopWidth/2, @DesktopHeight/2) GUISetState() GUICtrlSetResizing($GUIActiveX,1) _IENavigate ($oIE, "[url="https://pronet.aspex.be/pronetEE/"]https://pronet.aspex.be</SPAN>/pronetEE/[/url]") While 1     $msg = GUIGetMsg()     Select Case $msg = $GUI_EVENT_CLOSE             ExitLoop     EndSelect WEnd GUIDelete() Exit

This post has been edited by Lemmens Peter: 17 November 2007 - 08:06 PM


#2 User is online   DaleHohm 

  • Think of IE as an API...
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 4,970
  • Joined: 14-March 05
  • Location:Colorado

Posted 13 November 2007 - 11:54 PM

The URL is messed up in your post (IPB may have done it, not you).

The behavior for certificats is different based on browser version -- what version do you have and what happens?

Dale

#3 User is offline   Lemmens Peter 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 35
  • Joined: 06-December 05

Posted 14 November 2007 - 12:50 AM

You're right. The website is no longer correct. Strange... :wacko:
Try using : https://pronet.aspex.be/pronetEE/
* Using Internet explorer 7.0 and having installed the certificate. I got the correct website. (It's a website asking for a user and password)

* Using the AutoIt 3.2.8.0 I got the message "navigation to the webpage was cancelled.What you can try : refresh the page"
When I refresh the page I got the message "The page requires a client certificate..." (see exact message at the bottom)

It's like not all functionalities are available when using the autoIt-Gui ...


Regards, Peter

<H1 style="FONT: 13pt/15pt verdana; COLOR: #000000">The page requires a client certificate</H1>The page you are trying to view requires the use of a client certificate.Please try the following:

  • Click the Refresh button to try again, if you have installed your client certificate.
  • If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the pronet.aspex.be home page.
<H2 style="FONT: 8pt/11pt verdana; COLOR: #000000">HTTP 403.7 - Forbidden: Client certificate required
Internet Information Services</H2>Technical Information (for support personnel)

  • Background:
    This error occurs when the resource you are attempting to access requires your browser to have a Secure Sockets Layer (SSL) client certificate that the server recognizes.
  • More information:
    Microsoft Support


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users