jlantrip Posted August 20, 2009 Report Share Posted August 20, 2009 Hello, I would appreciate ANY assistance with my problem. I have a Macro that Disconnects, then Reconnects my Wireless Card (to collect a new IP address). Problem is sometimes it doesn't disconnect or reconnect properly, and because of this my macro continues on 'assuming' it is connected. So, I need to add a few lines to the macro to 'verify' it is still connected PRIOR to continuing on. Thanks for any assistance you can provide! Joe Quote Link to comment Share on other sites More sharing options...
rberq Posted August 20, 2009 Report Share Posted August 20, 2009 Can you do the GET IP ADDRESS command before your disconnect, save it in a variable, do it again after the reconnect, and compare to make sure it has changed? Quote Link to comment Share on other sites More sharing options...
Brain Virus Posted August 20, 2009 Report Share Posted August 20, 2009 Can you do the GET IP ADDRESS command before your disconnect, save it in a variable, do it again after the reconnect, and compare to make sure it has changed? dang you are fast. OP, Another idea is to use the ping site command. If its connected it will grab a bunch of ping info. If its not connected it will return the variable "Unknown Host" But either idea should work fine. Quote Link to comment Share on other sites More sharing options...
rberq Posted August 20, 2009 Report Share Posted August 20, 2009 either idea should work fine. I think I'd try the GET IP ADDRESS first, only because it's almost instantaneous, unlike the ping which could take a second or more. If GET IP ADDRESS turns out to be less than 100 percent reliable, then do the ping in addition to getting the IP, as an extra confirmation. Quote Link to comment Share on other sites More sharing options...
Brain Virus Posted August 21, 2009 Report Share Posted August 21, 2009 I think I'd try the GET IP ADDRESS first, only because it's almost instantaneous, unlike the ping which could take a second or more. If GET IP ADDRESS turns out to be less than 100 percent reliable, then do the ping in addition to getting the IP, as an extra confirmation. In my testing I noticed the ping command is near instantaneous, but you bring up a good point. /bows Quote Link to comment Share on other sites More sharing options...
jlantrip Posted August 21, 2009 Author Report Share Posted August 21, 2009 Ok, I try to figure out how to do that. I haven't used the Get or Capture Macros yet, but there is always a first time. Thanks for the info. Joe Quote Link to comment Share on other sites More sharing options...
Brain Virus Posted August 21, 2009 Report Share Posted August 21, 2009 Hey here is a mock build of what you need. <GETIPADD:1><REM2:disable the card here><GETIPADD:2><IFVAR2:4:01:1:T2><REM2:disable the card again><ENDIF> Quote Link to comment Share on other sites More sharing options...
Brain Virus Posted August 21, 2009 Report Share Posted August 21, 2009 I was dinking around in ME today and found another option you could use. <IFONLINE> it checks to see if you are online. So that way you dont have to ping or do an IP check Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.