Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Blank white page rendered only in embedded IE control

GUI embedded ActiveX Internet Explorer object height

  • Please log in to reply
26 replies to this topic

#1 UEZ

UEZ

    Never say never

  • MVPs
  • 5,036 posts

Posted 01 June 2012 - 01:31 PM

Hi,

when I render a web page embedded in a GUI and the height of the ActiveX control is greater than 8192 pixel then the web page will be shown only as an empty white page.

AutoIt         
#include <windowsconstants.au3> $hGUI = GUICreate("", 1024, 600) GUISetState(@SW_SHOW, $hGUI) $oIE = ObjCreate("Shell.Explorer.2") $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 1048, 8200) Global Const $BrowserNavConstant = 2 + 128 + 256 + 512 + 4096 + 3276 $t = TimerInit() With $oIE     .Silent = True     .FullScreen = True     .Resizable = False     .Visible = False     .StatusBar = False     .AddressBar = False     .Navigate("www.stern.de", $BrowserNavConstant, "_top")     Do         Sleep(500)         If .ReadyState = 4 Or TimerDiff($t) > 20000 Then ExitLoop     Until False     .Stop EndWith $oDocument = $oIE.document $oBody = $oDocument.body $oHtml = $oDocument.documentElement $oBody.scroll = "no" $oBody.style.borderStyle = "none" $oBody.style.border = "0px" $oHtml.style.overflow = 'hidden' Do Until GUIGetMsg() = -3 GUIDelete($hGUI)


Versions:
IE: 9.0.8112.1623
Autoit: 3.3.8.1 (running as x86)
Os: Win7 x64

No problems on Win8 (IE 10.0)

Can somebody confirm or even know why this happens?

Br,
UEZ

Edited by UEZ, 01 June 2012 - 03:09 PM.

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯








#2 CaptainClucks

CaptainClucks

    Unum Cavillator Spuria

  • Active Members
  • PipPipPipPipPipPip
  • 1,227 posts

Posted 01 June 2012 - 01:41 PM

This is what I'm getting.

Posted Image

Win32 XP
Spoiler

Warning: Posts by this user are subject to change or may disappear without notice.


#3 UEZ

UEZ

    Never say never

  • MVPs
  • 5,036 posts

Posted 01 June 2012 - 01:43 PM

If you can see something then it is working.

But for me the GUI is only blank.

Thanks for testing!

Br,
UEZ

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#4 CaptainClucks

CaptainClucks

    Unum Cavillator Spuria

  • Active Members
  • PipPipPipPipPipPip
  • 1,227 posts

Posted 01 June 2012 - 01:45 PM

No problem, it sucks though how operation on 32bit and 64bit is sometimes unpredictable.

Edited by ApudAngelorum, 01 June 2012 - 01:46 PM.

Spoiler

Warning: Posts by this user are subject to change or may disappear without notice.


#5 Bert

Bert

    Why yes....

  • MVPs
  • 12,031 posts

Posted 01 June 2012 - 01:46 PM

It may be your rig

#6 armoros

armoros

  • Active Members
  • PipPipPipPipPipPip
  • 503 posts

Posted 01 June 2012 - 01:58 PM

After i tested i have same result like ApudAngelorum

win32 XPsp3

All though the first 2 times it was only a blank page and the script ended alone (and is not a connection issue)

#7 UEZ

UEZ

    Never say never

  • MVPs
  • 5,036 posts

Posted 01 June 2012 - 02:03 PM

I tested it on Vista x64 in my VM with IE v9.0 and same problem there.

What IE versions you are using?

As far as I can remember with IE 8 it had worked but I may be wrong.

Br,
UEZ

Edited by UEZ, 01 June 2012 - 02:05 PM.

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#8 armoros

armoros

  • Active Members
  • PipPipPipPipPipPip
  • 503 posts

Posted 01 June 2012 - 02:04 PM

UEZ i made a little search and found this topic if it helps.

#9 armoros

armoros

  • Active Members
  • PipPipPipPipPipPip
  • 503 posts

Posted 01 June 2012 - 02:05 PM

I tested it on Vista x64 in my VM with IE v9.0 and same problem there.

What IE versions you are using?

Br,
UEZ


UEZ i have installed IE 9

But i dont use it

#10 BrewManNH

BrewManNH

    באָבקעס מיט קודוצ׳ה

  • MVPs
  • 10,574 posts

Posted 01 June 2012 - 02:07 PM

UEZ i have installed IE 9

But i dont use it

I thought you said you were running XP? XP can't run IE9.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to an XP machine, and I'm not going to.

 

Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude

 

How to ask questions the smart way!

 

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.
Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.
_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.
GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips. Latin Square password generator

 

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.


#11 armoros

armoros

  • Active Members
  • PipPipPipPipPipPip
  • 503 posts

Posted 01 June 2012 - 02:16 PM

No i dont use it
is IE9 preview
I have a set of Virtual Machines established which have an array of operating systems and browsers installed.

Also i have IETester with witch i can test IE10 preview, IE9, IE8, IE7 IE 6 and IE5.5 on Windows XP

#12 UEZ

UEZ

    Never say never

  • MVPs
  • 5,036 posts

Posted 01 June 2012 - 02:19 PM

Have in mind that the web page will be rendered when the height of the activex control is less than 8192!

I've choosen stern.de because the height of the site is larger than 8192 pixels.

Br,
UEZ

Edited by UEZ, 01 June 2012 - 02:21 PM.

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#13 armoros

armoros

  • Active Members
  • PipPipPipPipPipPip
  • 503 posts

Posted 01 June 2012 - 02:28 PM

Have in mind that the web page will be rendered when the height of the activex control is less than 8192!

I've choosen stern.de because the height of the site is larger than 8192 pixels.

Br,
UEZ


I didn't knew that..
Any workaround on your issue?

#14 UEZ

UEZ

    Never say never

  • MVPs
  • 5,036 posts

Posted 01 June 2012 - 02:38 PM

I can see this issue in my Screenshooter tool and the workaround is to limit the height to 8192 pixels by accepting the cut off the web page at the buttom.

But do I have this problem only or is it a generell problem with IE9?

Br,
UEZ

Edited by UEZ, 01 June 2012 - 03:08 PM.

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#15 JLogan3o13

JLogan3o13

    115 and holding

  • MVPs
  • 4,422 posts

Posted 01 June 2012 - 02:54 PM

I see the same under Win7 x64 and IE9, if that helps you any.

If you put a million monkeys on a million keyboards, one of them will eventually write a Java program. The rest of them will write Perl programs.

 

My Scripts: SCCM UDFInclude Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, Windows Firewall UDF


#16 UEZ

UEZ

    Never say never

  • MVPs
  • 5,036 posts

Posted 01 June 2012 - 03:10 PM

It confirms my presumption that this is an issue with IE9. Now I need the reason why the page gets blank when it is higher than 8192 pixels.

Br,
UEZ

Edited by UEZ, 01 June 2012 - 03:11 PM.

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#17 CaptainClucks

CaptainClucks

    Unum Cavillator Spuria

  • Active Members
  • PipPipPipPipPipPip
  • 1,227 posts

Posted 01 June 2012 - 06:18 PM

maybe if there was a method to set browser comparability mode for the operation.
Spoiler

Warning: Posts by this user are subject to change or may disappear without notice.


#18 UEZ

UEZ

    Never say never

  • MVPs
  • 5,036 posts

Posted 01 June 2012 - 06:32 PM

The odd thing is that when you browse the site in IE normally there is no problem with it - only when embedded and using the object commands.

Br,
UEZ

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#19 DaleHohm

DaleHohm

    Think of IE as an API...

  • MVPs
  • 5,985 posts

Posted 04 June 2012 - 12:57 PM

I would recommend avoiding using the ObjCreateInterface with IE if you can. See my sig for alternatives what give the same visual effect, but use full browser instances.

Dale

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


#20 UEZ

UEZ

    Never say never

  • MVPs
  • 5,036 posts

Posted 04 June 2012 - 01:34 PM

Thanks Dale, I will check your links in your signature whether I can adapt it into my tool.

Edit: I need to render the full web site without scroll bars to make a screenshot of it. The pseudo embedded solutions are unfortunately not usable for my purpose because of the scroll bars unless you can change that.


Br,
UEZ

Edited by UEZ, 04 June 2012 - 02:19 PM.

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯






Also tagged with one or more of these keywords: GUI, embedded, ActiveX, Internet Explorer, object, height

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users