shogun Posted March 5, 2009 Share Posted March 5, 2009 Hi, Is there a way for _IECreate to create a maximized window? I have been trying to insert "@SW_MAXIMIZE" in the code to no avail. Thanks in Advance Link to comment Share on other sites More sharing options...
bo8ster Posted March 5, 2009 Share Posted March 5, 2009 After you have created the IE window, use _IEPropertySet with "theatermode" or use WinSetState Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
shogun Posted March 5, 2009 Author Share Posted March 5, 2009 (edited) Well I searched before posting and didn't get a hit. Then I googled and got a hit ... brought me back to a post here??? Anyways .... putting this after the _IECreate line did the trick: $hIE = _IEPropertyGet($oIE, "hwnd") WinSetState($hIE, "", @SW_MAXIMIZE) Thanks for you input bo8ster. EDIT: The above worked, but looked bad because the web page stays not maximized until it finishes loading, then it maximizes. I changed from using _IECreate to "shellexecute ("iexplore.exe", "", "", "", @SW_MAXIMIZE ) WinWaitActive ("Blank Page - Windows Internet Explorer")". Now the window is maximized upon creation, looks much better. Edited March 7, 2009 by shogun Link to comment Share on other sites More sharing options...
bo8ster Posted March 5, 2009 Share Posted March 5, 2009 Remember that _IECreate does not return a ControlHandle so if you find that doing something like WinSetState($ie, "", SW_MINIMIZE) and does not work, you need a control handle, not a IE object. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
bo8ster Posted March 5, 2009 Share Posted March 5, 2009 Just saw the third post then - nps. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] 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