Jump to content

IECreate - Maximized


Recommended Posts

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

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 by shogun
Link to comment
Share on other sites

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...