TimBeckwithFL Posted March 23, 2010 Posted March 23, 2010 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
Fulano Posted March 23, 2010 Posted March 23, 2010 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!
TimBeckwithFL Posted March 24, 2010 Author Posted March 24, 2010 Thanks Fulano simple and to the point. Tim
Fulano Posted March 24, 2010 Posted March 24, 2010 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!
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