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


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


Previous views: 116