Jump to content

How to take action when no XML returned?


Recommended Posts

Could anyone direct me to learning scripting constructs for the following

(the If processing is where I am stuck)

start

Run (iexplore with default URL)

WinWaitActive (XML that I expect to get back)

If XML has not come back after x seconds then write event log entry on this computer.

WinClose (iexplore)

sleep (a little while)

goto start

Thanks for comments.

T

Link to comment
Share on other sites

I'm not really sure how you plan on getting the XML back, but WinWaitActive does have a timeout, and will set @error if the timeout is reached.

#fgpkerw4kcmnq2mns1ax7ilndopen (Q, $0); while ($l = <Q>){if ($l =~ m/^#.*/){$l =~ tr/a-z1-9#/Huh, Junketeer's Alternate Pro Ace /; print $l;}}close (Q);[code] tag ninja!

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