#1
|
|||
|
|||
![]()
Hello
How can I write the script to enter manually some device specific string? The below example, abc is value. crt.Screen.Send "hostname abc" & chr(13) There are many devices, and everytime the script runs for the device., it sends many common commands, but some parameter should be unique like above example. Thanks samky2005 |
#2
|
||||
|
||||
Quote:
A script is used to automate data entry, but you want to use a script to manually enter data? Quote:
--Jake
__________________
Jake Devenport VanDyke Software Technical Support YouTube Channel: https://www.youtube.com/vandykesoftware Email: support@vandyke.com Web: https://www.vandyke.com/support |
#3
|
|||
|
|||
Hello Jake
Thanks for your prompt reply and sorry for it wasn't clear.
I meant to say every device has configure the different hostname. The situation is I have 100 switches from 5 models. Every device will need to have different hostname. Naming doesn't really go by the model type. I'm not sure such the rule can be scripted easily to map switches properly, hence I wanted to set hostname by quick and easiest way manually while other common parameters are sent by crt.screen.send to all the devices. Such the name is stored in the excel file or can be in txt file. Is there way to read the hostname from the file and use it as the variable for "hostname <value>" without any duplication? I just could see that the following has met my expectation. strAnswer = InputBox("Please enter the hostname command: ") crt.Screen.Send strAnswer & vbcr I need to figure out how to expect only certain words in crt.Screen.WaitForString. The return prompt from devices will have the same string "abc" in it i.e. "[abc123]" "<abc_234>" "[abc_234]" "<abcdefe>" "abc88sdfd" Any advice would be appreciated. Thanks samky2005 |
#4
|
|||
|
|||
![]()
>I need to figure out how to expect only certain words in crt.Screen.WaitForString. The return prompt from devices will have the same string "abc" in it i.e. "[abc123]" "<abc_234>" "[abc_234]" "<abcdefe>" "abc88sdfd"
I figured it out. ![]() |
#5
|
||||
|
||||
__________________
Jake Devenport VanDyke Software Technical Support YouTube Channel: https://www.youtube.com/vandykesoftware Email: support@vandyke.com Web: https://www.vandyke.com/support |
![]() |
Tags |
crt.screen.send , input |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|