VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Can I insert a pause in the keymapping string (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Can I insert a pause in the keymapping string
#2885
Can I insert a pause in the keymapping string 5 Years ago  
The keymapping string that I use for non-Nexus Cisco switches fails for Nexus switches due to a suspected timing issue. Is there a way to insert a pause in the string to wait for the remote device to be ready to accept the second part of my string?
drussell (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2891
Re:Can I insert a pause in the keymapping string 4 Years, 11 Months ago  
Yes, but requires a bit of scripting.

You *can* insert a script as your keymapping text, and the script will run in response to your keypress. The only thing you have to do special is insert the keyword 'VBSCRIPT' at the top of the script, then the remainder of the body is a VBScript script. See the following script for an example. Insert the entire contents (except for the ---------) as the keymapping text.

------------------------
VBSCRIPT
Sub Main
SendText "Step 1"
WaitForTimeout "Some Text",1000
SendText "Step 2"
end Sub
---------------------------

SendText will send a particular text string

WaitForTimeout will wait for the response, but only for a certain number of miliseconds. If you don't really expect a response, but just want to wait for the specified amount of time, the text here is unimportant. Just make sure you set the delay time to what you want.


Hope this helps!
bpence (Admin)
Admin
Posts: 1328
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top