Jump to content

Recommended Posts

Posted

Hello AutoIT,

I'm new to this forum as well to the auto IT. I try to create a "command" from start->run->connect serverabc.

From below code, i'm using the Inputbox. how possibly can i change from the inputbox to the "start->run->connect $ssh_server" ?

Thanks for everyone help.

$ssh_server = InputBox("What is the servername?", "Enter the servername.", "")
    
    if ping($ssh_server) then
        $ssh_server = InputBox("What is the servername?", "Enter the servername.", "")
        filedelete($temp)
        sleep(2000)
                Run($putty, "")
                winwaitactive ("PuTTY Configuration")
                send($ssh_server)                                       
                send("+{TAB}")
                send("{DOWN}")
                send("{TAB}")
                send("l")
                send("{TAB}")
                send($temp,1)           
                send("{ENTER}")
Posted

What do you mean "Change from the inputbox"? You want to do something with the data typed into the inputbox correct?

Posted

What do you mean "Change from the inputbox"? You want to do something with the data typed into the inputbox correct?

Here the example.

Letsay the server test.com so i required to put in the inputbox, but practically, i want to change, by not using inputbox but by typing to the "start-run->connect $servername". I guess the method would be the same.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...