Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

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...