Jump to content

Ping having issues..


Ghost21
 Share

Recommended Posts

In one of my scripts I have

$var = Ping($device, 500)

msgbox(0,"PING",$var & " ms")

and no matter what device I ping it gives me " 0 " even though if I ping it through dos it responds..

If I make a new script and just add

$var = Ping($device, 500)

msgbox(0,"PING",$var & " ms")

and the device name it shows me the right response..

What would be stopping this from responding correct..

Link to comment
Share on other sites

Sounds as though your variable might be being modified by something else in your code.

Without seeing it, it virtually impossible to give any other answer, apart from try making $device a constant.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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