Jump to content
Sign in to follow this  
shogun

IECreate - Maximized

Recommended Posts

shogun

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
bo8ster

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
shogun

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
bo8ster

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
bo8ster

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.