Ghost21 Posted September 16, 2011 Share Posted September 16, 2011 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 More sharing options...
JohnOne Posted September 16, 2011 Share Posted September 16, 2011 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 More sharing options...
MrMitchell Posted September 16, 2011 Share Posted September 16, 2011 Just be sure $device is a correct server name or address... include the device name in the MsgBox Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now