Jump to content

test for prompt


Recommended Posts

Do you mean from an InputBox? If so, the InputBox blocks program execution, so it cannot continue until the InputBox is satisfied (or times out, if you give it the optional timeout parameter).

If you want to check to see if it timed out, read up on the documentation on how to check the @error macro.

#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

Well, the time out was specific to the InputBox, so you can pretty well ignore that part.

If it's in an external program there are a couple of ways to test for it.

If it's a popup window, usually you can use WinExists, or WinGetTitle ("[active]")

If it's not, you'll have to parse through WinGetText() on the main window and search for keywords specific to that particular situation.

Good luck :(

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