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)?
or
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
Else
.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.
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)?
or
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
Else
.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.