Sign in to follow this  
Followers 0
shogun

IECreate - Maximized

5 posts in this topic

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 :P

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by shogun

Share this post


Link to post
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]

Share this post


Link to post
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]

Share this post


Link to post
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
Sign in to follow this  
Followers 0