b0x4it Posted July 12, 2011 Share Posted July 12, 2011 It is possible to load IE in special size and without any toolbar using: $oIE = ObjCreate ( "InternetExplorer.Application" ) $oIE.Visible = 1 $oIE.Left = 0 $oIE.Top = 0 $oIE.Width = @DesktopWidth /3 $oIE.Height = @DesktopHeight /3 $oIE.Menubar = 0 $oIE.Toolbar = 0 $oIE.Statusbar = 0 $oIE.Resizable = 0 $oIE.Navigate ( 'http://www.autoitscript.com' ) It is also possible to fill an html form e.g gmail login form using: #include<IE.au3> $sUsername = "username" $sPassword = "password" $sUrl = "http://www.gmail.com" $oIE = _IECreate($sUrl, 0, 1, 0, 1) _IELoadWait ($oIE) $oHWND = _IEPropertyGet($oIE, "hwnd") WinSetState($oHWND, "", @SW_MAXIMIZE) $oForm = _IEFormGetCollection($oIE, 0) $oUsername = _IEFormElementGetObjByName($oForm, 'Email') $oPassword = _IEFormElementGetObjByName($oForm, "Passwd") _IEFormElementSetValue($oUsername, $sUsername) _IEFormElementSetValue($oPassword, $sPassword) _IEFormSubmit($oForm) Now I am trying to load gmail in a IE windows without any toolbar using the first code and then automatically fill the form. The first code uses ObjCreate and the second one uses _IECreate. How can I using _IECreate load IE without any toolbar and status-bar? thanks Link to comment Share on other sites More sharing options...
DaleHohm Posted July 12, 2011 Share Posted July 12, 2011 Take a look at _IEPropertySet() 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...
b0x4it Posted July 13, 2011 Author Share Posted July 13, 2011 Take a look at _IEPropertySet()DaleThank you very much. It is what I'm looking for. 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