/
using script with current session [1]
using script with current session [1]
using script with current session
Tuesday, November 24, 2015 1:18 PM - fablefox
Is there a way to use a script on current session? Does it have to start with ssh?
i need an example where i want to run a long command
insert a very long command my_name and even more long command my_name2
i just want a dialog to pop up asking my_name, put into variable and then for my_name2,
then send it to screen and carriage return.
Program Ver. : Xshell 5
i need an example where i want to run a long command
insert a very long command my_name and even more long command my_name2
i just want a dialog to pop up asking my_name, put into variable and then for my_name2,
then send it to screen and carriage return.
Program Ver. : Xshell 5
Re: using script with current session
Friday, November 27, 2015 12:02 AM - Support
Here is a simple script which prompts a dialog box where a user can input string:
Sub Main()
Description = "You name?"
Title = "Prompt Example"
DefaultValue = "My name is "
IsPassword = FALSE
myName = xsh.dialog.prompt(Description, Title, DefaultValue , IsPassword) + vbCr
xsh.Screen.Send(myName)
End Sub
Technical Support
Like us on Facebook
Follow us on Twitter
Visit our blog Blog
Sub Main()
Description = "You name?"
Title = "Prompt Example"
DefaultValue = "My name is "
IsPassword = FALSE
myName = xsh.dialog.prompt(Description, Title, DefaultValue , IsPassword) + vbCr
xsh.Screen.Send(myName)
End Sub
Technical Support
Like us on Facebook
Follow us on Twitter
Visit our blog Blog
Previous views: 116
Related content
Xshell Script does not Auto Login device [7]
Xshell Script does not Auto Login device [7]
More like this
script api problem [1]
script api problem [1]
More like this
scripts error!help me! [4]
scripts error!help me! [4]
More like this
Simple login script [3]
Simple login script [3]
More like this
xsh.Screen.Send "$i"? [1]
xsh.Screen.Send "$i"? [1]
More like this
Tech Support (company undisclosed) [1]
Tech Support (company undisclosed) [1]
More like this