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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Character Question 1

Status
Not open for further replies.

BrokenRecord2

IS-IT--Management
Sep 21, 2007
150
US
I wrote a little script and I can't get it to work. When my script gets to the "~." my pc only outputs is the ".". I was told that "~" means pause. So is there any way to get procom to really treat this as a keystroke instead of a pause command.



;Recorded script. Editing may be required.
proc main
transmit "****^M"
waitfor ">"
transmit "logo^M"
waitfor ">"
transmit "^M"
waitquiet 03
transmit "~."
waitfor "oam> "
transmit "exit^M"
endproc
 
Try:

Code:
sendkey 127

127 is the ASCII code for ~

In ASPECTS help, lookup ASCII Chart for a full list. You might have to play around with that a little, I don't remember if it's the correct format.
 
Thanks Knob! That was the trick.

;Recorded script. Editing may be required.
proc main
transmit "****^M"
waitfor ">"
transmit "logo^M"
waitfor ">"
transmit "^M"
waitfor ">"
transmit "~." RAW
waitfor "oam> "
transmit "exit^M"
endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top