Sign in to follow this  
Followers 0
Nakia

Help with using Auto IT with a Telnet session

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

$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?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0