Jump to content

check ping help


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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