Firdhaus Posted March 2, 2010 Posted March 2, 2010 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}")
Beege Posted March 2, 2010 Posted March 2, 2010 What do you mean "Change from the inputbox"? You want to do something with the data typed into the inputbox correct? Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator
Firdhaus Posted March 2, 2010 Author Posted March 2, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now