Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy and past with a pause

Status
Not open for further replies.

sonic67

ISP
Mar 11, 2006
16

Is their a way to write a script or insert a character that will cause Procom/Aspect to pause for 1.5 seconds after each line of text if I paste text into procomm? The equipment that I'm communicating with is only able handle information at a slow rate. Any information would be greatly appreciated.

Thanks,
Greg
 
You can use set txpace xxx to set the delay between each characters sendt.
set txpace integer

Determines the length of pauses between transmitted characters. This command corresponds to the Transmit pacing (ms): field in the Setup, System, System Options dialog. Valid values range from 0 to 999, in milliseconds. fetch returns an integer equal to the current transmit pacing value.

or use pause xx between each line.
xx would be seconds to wait, so pause 2 waits 2 seconds.

:)
 
If you add three tildes (~) to the end of the string, this acts as a 1,5 secibd pause in strings sent by Procomm. I think this should apply to pasted text as well.

 
Thanks for the suggestions but Unfortunately the spaces and the tildes don't seem to work because they Interferes with the TL1 commands of the EQ. Is there any other suggestion or ways to make it ignore the characters?

Thank you,
 
Greg, Did you try geirendre's suggestion ?

For any script you want to slow down, place
set txpace 500
as the first line of code.
Recompile your script and have a look at the effect...

It sets the transmit pacing between each character, so 500ms between each will be really sloooooooooow....
Experiment with the value to find what works / what doesn't.



 
Oops, realize I made a small mistake on the tildes, those act as pauses only in a transmit statement not if you type them in at the keyboard manually. You could write a short script like this:

proc main
transmit "~~~"
endproc

assign that script to a meta key to run, and then press the meta key at the bottom of the Procomm window after you have pasted. If there is a string you could key off of that appears after you have pasted the text and pressed enter, you could write a script that uses the when target command to detect that and run the transmit statement above.

 
If your pasting text from another application (notepad, excel, whatever) there is probably a better way to do it, especially if it's repetitious data entry.

You can have aspect read in a text file, manipulate the data, and transmit it to your remote host.

This is a pretty common thing to do. If you need help getting started with that, I'm sure there's plenty of resources here to help you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top