Jump to content
Sign in to follow this  
scriptnewbie

Entering ip address

Recommended Posts

scriptnewbie

I am writing a script to install pervasive sql client. At one point of the install, I have to test the network connection. I test the connection by entering the ip address (10.100.100.29) of the psql server. The title of the window is "Test Network Connection". There's a place to type in the ip address with a caption of "Target machine". The "m" in machine is underscored. There's also < back>, <next,> and <cancel> buttons.

Using the "send or controlsend" commands have not been successful. Based on the above info, would someone be kind enough to give me the correct syntax for sending the ip address. Thank You.

Share this post


Link to post
Share on other sites
_Kurt

EDIT

Kurt

Edited by _Kurt

Awaiting Diablo III..

Share this post


Link to post
Share on other sites
Uten

Why not just use Ping

Local $ip="10.100.100.29"
If ping($ip) Then 
    ;Do some work
Else
    msgbox(16,"ERROR", "Could not connect to: " & $ip)
EndIf

Share this post


Link to post
Share on other sites
PaulIA

I am writing a script to install pervasive sql client. At one point of the install, I have to test the network connection. I test the connection by entering the ip address (10.100.100.29) of the psql server. The title of the window is "Test Network Connection". There's a place to type in the ip address with a caption of "Target machine". The "m" in machine is underscored. There's also < back>, <next,> and <cancel> buttons.

Using the "send or controlsend" commands have not been successful. Based on the above info, would someone be kind enough to give me the correct syntax for sending the ip address. Thank You.

It would depend on the type of control, but if the application uses a standard IPAddress control, you can use the IPAddress module in Auto3Lib to fill in the IP address. There is a demo script included that shows how to fill in an IP address in an external application. Using Ping is not reliable because many servers today are configured not to respond to ping requests.

Auto3Lib: A library of over 1200 functions for AutoIt

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.