Nakia Posted November 11, 2011 Share Posted November 11, 2011 Hi all, This is my first post here and I am also new to AutoIT and programming all together. I have a little project I am working on and have made a little progress but seem to be stuck at the following particular step..Hope someone can help?? Basically what I need to do. Have an InputBox which-- When "OK" button is pressed it takes the contents of the Input Area and then sends them to a telnet session I have running through the CMD window. the steps I have currently achieved; - GUI - "Program" button which starts telnet - using the Send Function it connects and logs in - Sends first two lines of fixed code - this is where the InputBox appears, which is asking for "Cell Username" ** this is where I need the contents exactly as they are typed in the above InputBox to be sent back to the Telnet Session after hitting the "OK" button*** *********Would also be good to get rid of the "Cancel" button that appears in the InputBox, not overly important though*********************** Hope someone can help.. Thanks in advanced Kia Link to comment Share on other sites More sharing options...
rcmaehl Posted November 11, 2011 Share Posted November 11, 2011 Did you read the AutoIt documentation for InputBox? My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
Nakia Posted November 11, 2011 Author Share Posted November 11, 2011 Did you read the AutoIt documentation for InputBox?Yes I did but I still cant seem to understand how to extract the "value"I am new to this stuff so its likely something really silly I am doing wrong Link to comment Share on other sites More sharing options...
Matrix112 Posted November 11, 2011 Share Posted November 11, 2011 (edited) $input = InputBox("Testing", "Enter Username:", "") This is an Example, all you typed is saved in the variable $input after you hit OK. Edited November 11, 2011 by Matrix112 Link to comment Share on other sites More sharing options...
Nakia Posted November 13, 2011 Author Share Posted November 13, 2011 $input = InputBox("Testing", "Enter Username:", "") This is an Example, all you typed is saved in the variable $input after you hit OK. Thanks do much. so how do I get this into the Send command after using this? I.e., this is asking for the value, how do i then get this into the Send command which is what I have been using to input the other commands into the Telnet Session? Link to comment Share on other sites More sharing options...
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