xiaoxiami Posted September 20, 2009 Share Posted September 20, 2009 (edited) $oIE = ObjCreate("Shell.Explorer.2") how to create a webrower without scroll bar? the requirement want to load an outside url,so must use autoit to create it. $oIE.document.body.scroll = "no" invalidation inside url,we can do it like this: loading page add <body scroll="no"> Edited September 20, 2009 by xiaoxiami Link to comment Share on other sites More sharing options...
DaleHohm Posted September 20, 2009 Share Posted September 20, 2009 You must navigate to a page and the page must be fully loaded before you can use $oIE.document.body.scroll = "no" 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 Link to comment Share on other sites More sharing options...
xiaoxiami Posted September 21, 2009 Author Share Posted September 21, 2009 #include <IE.au3> $WinMain = GUICreate("test", 720, 550, (@DesktopWidth - 720) / 2, (@DesktopHeight - 650) / 2) $oIE = ObjCreate("Shell.Explorer.2") $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 720, 500) GUISetState() $oIE.Navigate("www.google.com") $oIE.document.body.scroll = "no" ;it's also wrong While 1 WEnd thanks for your reply like this code style, How to correctly operate it? Link to comment Share on other sites More sharing options...
DaleHohm Posted September 21, 2009 Share Posted September 21, 2009 Use _IENavigate($oIE, "www.google.com") instead of $oIE.Navigate("www.google.com") to insure the navigation is complete. 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 Link to comment Share on other sites More sharing options...
xiaoxiami Posted September 21, 2009 Author Share Posted September 21, 2009 thank you very much! the problem had been solved. #include <IE.au3> $WinMain = GUICreate("test", 720, 550, (@DesktopWidth - 720) / 2, (@DesktopHeight - 650) / 2) $oIE = ObjCreate("Shell.Explorer.2") $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 720, 500) GUISetState() _IENavigate($oIE, "www.google.com") _IELoadWait($oIE) $oIE.document.body.scroll = "no" While 1 WEnd Link to comment Share on other sites More sharing options...
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