Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

IE Window Hide/Show


  • Please log in to reply
7 replies to this topic

#1 APPLEEATER

APPLEEATER

    Wayfarer

  • Active Members
  • Pip
  • 51 posts

Posted 30 August 2008 - 11:47 PM

Hi,

In the script i have now right now i am using this...
$W_IE = _IECreate("<a href='http://www.autoitscript.com/' class='bbc_url' title=''>http://www.autoitscript.com/"</a>, 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, 30 August 2008 - 11:49 PM.








#2 Nahuel

Nahuel

    To Err is human, to Arr is pirate.

  • Active Members
  • PipPipPipPipPipPip
  • 1,841 posts

Posted 31 August 2008 - 12:00 AM

Try this:

$W_IE = _IECreate("<a href='http://www.autoitscript.com/' class='bbc_url' title=''>http://www.autoitscript.com/"</a>, 0, 0) $W_hwnd = _IEPropertyGet($W_IE, "hwnd") WinSetState($W_hwnd, "", @SW_SHOW)


#3 APPLEEATER

APPLEEATER

    Wayfarer

  • Active Members
  • Pip
  • 51 posts

Posted 31 August 2008 - 12:23 AM

Try this:

$W_IE = _IECreate("<a href='http://www.autoitscript.com/' class='bbc_url' title=''>http://www.autoitscript.com/"</a>, 0, 0) $W_hwnd = _IEPropertyGet($W_IE, "hwnd") WinSetState($W_hwnd, "", @SW_SHOW)

Awsome,
it worked thanks =)

#4 DaleHohm

DaleHohm

    Think of IE as an API...

  • MVPs
  • 5,970 posts

Posted 31 August 2008 - 12:26 AM

Or:

$W_IE = _IECreate("<a href='http://www.autoitscript.com/' class='bbc_url' title=''>http://www.autoitscript.com/"</a>, 0, 0) _IEAction($W_IE, "visible")


Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

 

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded

IE.au3 issues with Vista - Workarounds

 

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y
Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble


#5 APPLEEATER

APPLEEATER

    Wayfarer

  • Active Members
  • Pip
  • 51 posts

Posted 31 August 2008 - 12:30 AM

Or:

$W_IE = _IECreate("<a href='http://www.autoitscript.com/' class='bbc_url' title=''>http://www.autoitscript.com/"</a>, 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, 31 August 2008 - 12:33 AM.


#6 Nahuel

Nahuel

    To Err is human, to Arr is pirate.

  • Active Members
  • PipPipPipPipPipPip
  • 1,841 posts

Posted 31 August 2008 - 12:31 AM

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

#7 Nahuel

Nahuel

    To Err is human, to Arr is pirate.

  • Active Members
  • PipPipPipPipPipPip
  • 1,841 posts

Posted 31 August 2008 - 12:35 AM

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.

#8 APPLEEATER

APPLEEATER

    Wayfarer

  • Active Members
  • Pip
  • 51 posts

Posted 31 August 2008 - 01:59 AM

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!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users