Jump to content
Sign in to follow this  
Lemmens Peter

GUI with an embedded IE-object

Recommended Posts

Lemmens Peter

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.



#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)
_IENavigate ($oIE, "[url="https://pronet.aspex.be/pronetEE/"]https://pronet.aspex.be</SPAN>/pronetEE/[/url]")

While 1
    $msg = GUIGetMsg()
Case $msg = $GUI_EVENT_CLOSE
Edited by Lemmens Peter

Share this post

Link to post
Share on other sites

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?


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post

Link to post
Share on other sites
Lemmens Peter

You're right. The website is no longer correct. Strange... :P

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 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

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