Jump to content

Web page


yucatan
 Share

Recommended Posts

Hello guys,

I wanne make a check for a website.

if the website is open in the browser (if hidden and if show)

then refresh.

but i'm having some problems with _IEAction

this is the script

#include <IE.au3>
while 1
If WinExists("Powerhouse - Prijzen - Endex - Windows Internet Explorer") Then
$window=WinGetHandle("Powerhouse - Prijzen - Endex - Windows Internet Explorer")
   _IEAction ($window, "refresh")
    ConsoleWrite("Refresh"&@CRLF)
EndIf
sleep(6000)
WEnd
Link to comment
Share on other sites

$window, is a handle to the window, you need an object as returned by _IECreate(), _IEAttach().

Also do you realize that your code (if it were correct) would just sit in a loop constantly refreshing the page?

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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...