Jump to content
Sign in to follow this  
samozaparola

Embedded IE object

Recommended Posts

samozaparola

Is there a way to disable the right-click menu or the vertical scrollbar that always appears in the embedded Internet Explorer object?

Share this post


Link to post
Share on other sites
Marrio

#Include <ie.au3>

$GUI=GUICreate("", 200, 200)

$oIE=_IECreateEmbedded()

GUICtrlCreateObj($oIE,10,10,180,180)

_IENavigate($oIE, 'about:blank')

$DESCRIPTION = '<html><style type="text/css">BODY {overflow: hidden;}</style><body><h1>Hello!</h1></body></html>'

_IEDocWriteHTML($oIE,$DESCRIPTION)

GUISetState()

Do

Until GUIGetMsg() = -3

Edited by Marrio

Share this post


Link to post
Share on other sites
samozaparola

Thank you very much, Marrio! So hiding scrollbars is an IE, not AutoIt issue after all... Your example helped me solve my problem... I had overflow set to hidden in my css body style definition. The reason it did not work was I had

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

defined in my html document... When I removed it, everything was ok. Are there however some parameters in the AutoIt _IECreateEmbedded function that can add or disable statusbar, right-click functionality, etc.?

Edited by samozaparola

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  

×