Sign in to follow this  
Followers 0
TimBeckwithFL

How to take action when no XML returned?

4 posts in this topic

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

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

Thanks Fulano simple and to the point.

Tim

Share this post


Link to post
Share on other sites

Np, good luck with your script :(


#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!

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