Jump to content

IE embedded


Vieri
 Share

Recommended Posts

Hi,

I'm having trouble embedding an IE object within an AutoIT GUI.

The code snippet below works fine for me when using a screen resolution of 1024x768.

However, if I change the desktop resolution to 800x600 and reboot, @DesktopWidth, @DesktopHeight are as expected (ie. 800, 600) but the IE embedded object displays HTML pages that seem to be for another resolution (seems to be for bigger resolutions because the "drawing area" is bigger).

I think you can easily reproduce the problem by setting your display to 800x600 and running on one hand a normal IE instance pointing to a url (either using IECreate or opening the browser directly), and on the other, the following script:

#include <IE.au3>
$oIE = _IECreateEmbedded ()
$GUIhandle = GUICreate("window title", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP, $WS_EX_OVERLAPPEDWINDOW)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, @DesktopWidth, @DesktopHeight)
GUISetState()
_IENavigate ($oIE, $URL)

If the URL code is appropriate you should notice the difference. IE embedded will cut off a piece of the page that you will be able to see correctly in the normal IE instance.

How can I fix this?

Is there a way to tell $oIE to use 800x600?

Thanks

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