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

needs inprovement for 81 script 1

Status
Not open for further replies.

johnpoole

Programmer
May 26, 2004
19,375
US
Heres a short script that i use to quickly prt a dn/tn.. after i enter the dn i capture the tn to the windows clipboard, i have metakey alt2 defined as paste.. this works well in as much as i get 50 calls a day wanting a quick change or just tn or button info.. i also have scripts that add or remove mail to a station, ie cls marks hunt and fdn.. just to speed things up... my question is, since i don't do scripts, just capture and edit, how can i make this one work better..what should i have done different? thanks

proc main
transmit "****^M"
waitfor ">"
transmit "LD 20^M"
waitfor "REQ: "
transmit "PRT^M"
waitfor "TYPE: "
transmit "DNB^M"
waitfor "CUST "
transmit "0^M"
waitfor "DATE "
transmit "^M"
waitfor "PAGE "
transmit "^M"
waitfor "DES "
transmit "^M"
waitfor "NACT "
transmit "^M"

waitfor "TYPE: " forever
transmit "TNB^M"
waitfor "TN "
metakey alt 2
waitfor "DATE "
transmit "^M"
waitfor "PAGE "
transmit "^M"
waitfor "DES "
transmit "^M"
endproc

the
1st two lines takes you to ld 20 from any location


john poole
bellsouth business
columbia,sc
 
improvement...can spell check, can't type

john poole
bellsouth business
columbia,sc
 
I'm not familiar with the equipment you're using, so I guess my question would be are there any problems you've run into when using the script that you need to resolve/improve?

aspect@aspectscripting.com
 
thanks but the script runs as recorded, but after trying to use scripts from your forum, i realize that their are better ways to do most of the things i have scripts for. i thought other meridian users might have scripts that do the same thing simpler.. in this txt

DN 7711
TYPE SL1
TN 008 0 05 00 KEY 00 H MARP DES SWITCH 14 OCT 2004
(2616)
TN 008 0 05 01 KEY 01 H DES SWITCH 14 OCT 2004
(2616)
is their a way to have aspect copy 008 0 05 00 to the window clip board? the address before marp is seldom in the same place on that print. if 7711 is on 7 phones, i will get 14 lines with only one marp..thanks

john poole
bellsouth business
columbia,sc
 
If I understand you correctly, you only want to copy that particular string if "MARP" is on that line? If so, and the location of the string to copy is always constant in the received line, then I think this is doable. I haven't tested this approach, but think it will work. You could use a when target command to call a procedure when the "MARP" string is received. That subprocedure could then copy the substring using this command:

termgets $ROW 5 sLine 17

where $ROW is the current row in the terminal screen, 5 is the column position of the beginning of the substring, sLine is a string variable defined by the script, and 17 is the number of characters to copy. You can then use:

strtoclip sLine

to copy that string to the clipboard.


aspect@aspectscripting.com
 
i give it a try, thanks for taking the time to answer my question, if you ever need any software help for tele-communication let me know. i found this wed sit through your web site and help beginers over in the wiring closet. do you know of a site i could pick up pointers on script files more of a entry level...thanks again

john poole
bellsouth business
columbia,sc
 
You might try browsing the sample scripts on my site and see if anything looks helpful to you. I have a few different scripts that other users have submitted for use with some telecommunications equipment.

Here are a couple additional pointers I've copied from my site:

Be sure to browse the SAMPLES directory on your Procomm Plus 4.8 CD for sample scripts, as well as the two tutorial PDF files in the SAMPLES\ASPECT directory. Also be sure to read ASPECT.PDF in the DOCS directory on the CD. This file is a high-level overview of ASPECT that serves as a very good introduction to the language, and also includes many sample scripts toward the end of the document. One final source of sample scripts is the ASPECT help file discussions of the various commands as they include many examples illustrating how the commands are used.

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top