DareDev1l Posted August 25, 2012 Posted August 25, 2012 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
Andreik Posted August 27, 2012 Posted August 27, 2012 Did you tried Refresh method of IE object? $oIE.Refresh
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