hotelnorbit Posted January 29, 2008 Posted January 29, 2008 Hi, I am trying to navigate between open windows and having trouble doing so. Here is my script: Dim $ih[12];6 websites dim $site[12] #include <IE.au3> $site[3] = "http://www.drudgereport.com";geographical forecast $site[4] = "http://www.weather.gov/outlook_tab.php";national map $site[5] = "http://www.cpc.ncep.noaa.gov/products/predictions/610day/610temp.new.gif";6 to 10 day $site[6] = "http://www.cpc.ncep.noaa.gov/products/predictions/814day/814temp.new.gif";8 to 10 day $site[7] = "http://www.cpc.ncep.noaa.gov/products/predictions/long_range/seasonal.php?lead=01"; Long Range $weather1 = _IECreate ($site[3], 1, 1, 0) WinSetState($weather1, "", @SW_MAXIMIZE) $weather1 = WinGetTitle($weather1) $weather2 = _IECreate ($site[4], 1, 1, 0) WinSetState($weather2, "", @SW_MAXIMIZE) $weather2 = WinGetTitle($weather2) $weather3 = _IECreate ($site[5], 1, 1, 0) WinSetState($weather3, "", @SW_MAXIMIZE) $weather3 = WinGetTitle($weather3) $weather4 = _IECreate ($site[6], 1, 1, 0) WinSetState($weather4, "", @SW_MAXIMIZE) $weather4 = WinGetTitle($weather3) _IEAction ($weather1, "focus") The _IEAction won't focus back on my original web site. I'd like to copy and paste pictures on these web sites into a power point application. Thanks.
DaleHohm Posted January 30, 2008 Posted January 30, 2008 Use _IEPropertyGet to get the hwnd, then use the hwnd with WinActivate 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 Better Better? 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
hotelnorbit Posted January 30, 2008 Author Posted January 30, 2008 Thanks a lot. It's working now.Use _IEPropertyGet to get the hwnd, then use the hwnd with WinActivateDale
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now