Jump to content
ksr000

check ping help

Recommended Posts

ksr000

hi frnds i need a script to check the ping of different ip,s and websites.. i have not enough knowledge of autoit

pls help me where to start

 

Share this post


Link to post
Share on other sites
Starstar

Just create gui {Guicreate()}

and an input box and a button 

and set the input box value to 

Ping ( "address/hostname")


Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."

Share this post


Link to post
Share on other sites
Starstar

$g=GUICreate("Ping",200,100)
$b=GUICtrlCreateButton("Check",140,70,50,20)
$i=GUICtrlCreateInput("",10,10,100,20)
$l=GUICtrlCreateLabel("wait...",10,80,80,20)
GUISetState(@SW_SHOW)

While 2
    $msg = GUIGetMsg()
    Switch $msg
        Case $b
            $png=ping($i)
            ControlSetText("","",$l,$png)
        Case -3
            Exit
    EndSwitch
    WEnd

first step for you.......

 

 

Edited by Starstar

Life is like a coin. You can spend it Anyway as you wish and for your kind information. "you can spend it only once."

Share this post


Link to post
Share on other sites
JLogan3o13

ksr000, the example in the help file for Ping does pretty much exactly what you're asking. Is it not working for you? Or did you not bother trying it?

@Starstar - you're not doing the OP much good by posting broken code. If you aren't sure of how to help - don't.

  • Like 2

√-1 2^3 ∑ π, and it was delicious!

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

×