Jump to content

IE refresh while minimized


Recommended Posts

Hello . I want to make a script for refreshing a web page. here is my code.

#include

HotKeySet("{F2}" , "Terminate")

$oIE = _IECreate("www.site.com")
WinSetState("" , "" , @SW_MAXIMIZE)
$oIE.Navigate2("site2.com" ,2048)

While 1

ControlClick("Site - Internet Explorer, optimized for Bing and MSN" , "" , "" , "left", 1, 938, 41)
_IELoadWait($oIE)
ControlClick("Site2 - Internet Explorer, optimized for Bing and MSN" , "" , "" , "left", 1, 938, 41)
_IELoadWait($oIE.Navigate2)

Wend

Func Terminate()
Exit 0
EndFunc

I want to with the controlclick command to click the refresh button and then wait the page to load . And at the same time on the other tab to do the same thing , and all this on back font. How can I do it , because I know this code is wrong . The thing with the maximize button is just to check if it is working , if there is controlclick I can minimize it and it continues. Thanks in advance :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...