samozaparola Posted August 2, 2010 Posted August 2, 2010 Is there a way to disable the right-click menu or the vertical scrollbar that always appears in the embedded Internet Explorer object?
Marrio Posted August 7, 2010 Posted August 7, 2010 (edited) #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()DoUntil GUIGetMsg() = -3 Edited August 7, 2010 by Marrio
samozaparola Posted August 8, 2010 Author Posted August 8, 2010 (edited) 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 August 9, 2010 by samozaparola
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now