Jump to content

Help with using Auto IT with a Telnet session


Nakia
 Share

Recommended Posts

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

$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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...