Jump to content

How can _IECreateEmbedded support installing plugins?


Recommended Posts

#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>

Local $oIE = _IECreateEmbedded()
GUICreate("Web Test", 640, 580, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
GUICtrlCreateObj($oIE, 10, 40, 600, 360)
Local $idButton_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30)
Local $idButton_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30)
Local $idButton_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30)
Local $idButton_Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30)

Global $g_idError_Message = GUICtrlCreateLabel("", 100, 500, 500, 30)
GUICtrlSetColor(-1, 0xff0000)

GUISetState(@SW_SHOW)

_IENavigate($oIE, "https://www.xxx.com")
_IEAction($oIE, "stop")

While 1
    Local $iMsg = GUIGetMsg()
    Select
        Case $iMsg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $iMsg = $idButton_Home
            _IENavigate($oIE, "http://www.xxx.com")
            _IEAction($oIE, "stop")
            _IEAction($oIE, "back")
        Case $iMsg = $idButton_Back
            _IEAction($oIE, "back")
        Case $iMsg = $idButton_Forward
            _IEAction($oIE, "forward")
        Case $iMsg = $idButton_Stop
            _IEAction($oIE, "stop")
    EndSelect
WEnd

GUIDelete()

Exit

as shown above , There is an internal vpn web site , I want to use the _ IECreateEmbedded and GUICtrlCreateObj simulate IE Web browser To operate it.

But a problem that hasn't encountered before is that the Web-Page needs to install several plug-ins (Related to print , database , flash ,and security so on) .


the Real IE browser can be installed and works properly .

However , the _ IECreateEmbedded and GUICtrlCreateObj simulations , always prompt that the plug-in is not installed .

Are there any relevant posts and examples in the forum? I'm not very good at searching, I did n' t find a similar post.
Is there any solution ?

Thanks in advance !

Edited by Letraindusoir
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...