Sign in to follow this  
Followers 0

IE Window Hide/Show

8 posts in this topic

Posted (edited)

Hi,

In the script i have now right now i am using this...

$W_IE = _IECreate("http://www.autoitscript.com/", 0, 0)
$W_title = _IEPropertyGet($W_IE, "title")
WinSetState($W_title, "", @SW_SHOW)

But say i have the same window open in firefox,

or even in IE it will show that window instead

how can i do something like this:

_IEPropertySet($W_IE, "state", "show")

and have it work?

Thanks

Edited by APPLEEATER

Share this post


Link to post
Share on other sites



Posted

Try this:

$W_IE = _IECreate("http://www.autoitscript.com/", 0, 0)
$W_hwnd = _IEPropertyGet($W_IE, "hwnd")
WinSetState($W_hwnd, "", @SW_SHOW)

Share this post


Link to post
Share on other sites

Posted

Try this:

$W_IE = _IECreate("http://www.autoitscript.com/", 0, 0)
$W_hwnd = _IEPropertyGet($W_IE, "hwnd")
WinSetState($W_hwnd, "", @SW_SHOW)
Awsome,

it worked thanks =)

Share this post


Link to post
Share on other sites

Posted

Or:

$W_IE = _IECreate("http://www.autoitscript.com/", 0, 0)
_IEAction($W_IE, "visible")

Dale

Share this post


Link to post
Share on other sites

Posted (edited)

Or:

$W_IE = _IECreate("http://www.autoitscript.com/", 0, 0)
_IEAction($W_IE, "visible")

Dale

I Prefer dale's answer...

because there is no possible mess up,

and it is actually an IE function

but would it work if i wanted to hide it too?

so:

_IEAction($W_IE, "hidden")

THANKS TO BOTH OF YOU!

Edited by APPLEEATER

Share this post


Link to post
Share on other sites

Posted

You learn something new everyday. I haven't used the _IE* functions since internet died at home. ;)

Nice seeing you Dale.

Share this post


Link to post
Share on other sites

Posted

I Prefer dale's answer...

because there is no possible mess up,

and it is actually an IE function

but would it work if i wanted to hide it too?

so:

_IEAction($W_IE, "hidden")

THANKS TO BOTH OF YOU!

Use "invisible" instead of "hidden". And use the help file. It has all the information.

Share this post


Link to post
Share on other sites

Posted

Use "invisible" instead of "hidden". And use the help file. It has all the information.

Well,

i did look but i didn't find anything,

so i must have missed it,

Thanks AGAIN!

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