Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

referencing the prompt for automation

referencing the prompt for automation

referencing the prompt for automation

I don't know if it is just so simple, that nobody has explained it in tutorial. But all I want to do is have Reflection, respond to it's own question. Let me explain..

So I've been tasked with printing files(about a thousand). There are two types of file, and they print to different printers. These are both simple enough to automate, however. Nowhere on my list does it say which file is which. At the time I go to print. Reflection tells me a serial/reference depending on the type (example)

are you sure you want to print (1827ba)?
are you sure you want to print (587hks)?

these are always the same (either/or).. I've searched high and low, and scoured the net.

All I want is:

If {prompt} = (1827ba)? Then
.transmit "printer1" & CR
.transmit "printer2" & CR

but for the love of pete.. nobody has been able to answer this for me. What do I put in the place of {prompt}? how do I make it look at it's own question?
Or is there an easier or faster way to do this?

If you cannot tell, I'm not trained in programming. Just chip away at it til it works, I've automated many basic functions but again.. this escapes me.

I've attempted .waitforstring, I've attempted : "DIM prompt as string", but still how do I tell "prompt" that I'm referencing the question it's asking me?

I could just set it up for an input box and have some poor soul sit there entering 1, 2, 1 ,1 ,2,1,1,1,2 etc. based on what questions comes up, but it's got to be soooo simple. please help.

RE: referencing the prompt for automation


In you programming language reference look for Active Printer or something like that.


glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: referencing the prompt for automation

Well I know which printers i need to send to, but I have to tell it either/or based on what the prompt says, actually type in the printer name to send to. So if the prompt says one thing.. send it there, if it says the other.. send it to the other.

every tutorial/reference I find is discusses data the user inputs, instead of what the terminal is telling me. It's telling me which kind of file it is, but then i have to enter data 1 or data 2 to continue. I should be able to automate it, to enter the data based on the prompt.

I guess another way to ask is: what is the term for the prompt? .datareturn? .terminal? .Commandprompt?, how can i say "if you're asking this reflection, i want this, but if you ask that, i want that"?

like .waitforstring "______"? waits for that text to show up in the prompt, but I cannot do, if string = "_______"

that's all.. like if it says

Press ENTER to continue

can i have: If (term i'm trying to figure out) = "Press ENTER to continue" Then transmit CR ELSE transmit "whatever"?

or is the only way to move forward

.waitforstring "Press ENTER to continue"
.transmit CR

and enter a error handler to skip whatever is left over?

I don't know if i'm asking this right. but if it says "Press ENTER to continue" and is waiting for input, can you have VBA read that line and respond based on what it's asking? forget the printers..

Sorry if my questions aren't clear.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close