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

Newbie script making

Status
Not open for further replies.

jamesjc

Technical User
Feb 21, 2006
6
CA
Hi everybody,

I want to make a script;

1-when receiving certain text (login)
send this text "XXXXX"^M

2-dialog screen (user enters a number from 1 to 6)^M
send XXXX(x)<--number entered^M

3-wait for this text
dialog screen wait for user to press ok then
send XXXX^M

4-received answer send it to a cell in excel


Was wondering if it is at all possible

thanks in advance

James
 
You would use something like this:

waitfor "login prompt"
transmit "XXXXX^M"
sdlginput (to get the number, place into variable called sNum)
transmit "XXXX"
transmit sNum
transmit "^M"
waitfor "text string #2"
(not sure what you mean by dialog screen wait for user to press ok)
transmit "XXXX^M"

To get the result into Excel, I have a few sample scripts on my site that show how to use DDE to transfer data between Procomm and Excel.

 
Thanks for the fast response Knob!

It's looks easy will try it.

For
(not sure what you mean by dialog screen wait for user to press ok)

I meant; when I do
waitfor "text string #2"
next I want a dialog screen meaning a little window that pops-up that askes the user to press OK (Plug in the equipment and press OK)
then transmit "XXXX^M"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top