Sign in to follow this  
Followers 0
DareDev1l

IE refresh while minimized

2 posts in this topic

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 :)

Share this post


Link to post
Share on other sites



Did you tried Refresh method of IE object?

$oIE.Refresh

When the words fail... music speaks

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