Jump to content

Recommended Posts

Posted (edited)

Edit: Just found out the function was written in Inet.au3 >_>

Please delete topic

Edited by Dampe
Posted

That's nice! A couple of minor observations:

[a] _IsIPAddress() can return 1 even if it's not valid (e.g. "123456.2.3.48261236"). I know that's not going to happen in your script but as a wider function it might be good to correct that by using ^ and $ to delimit the regular expression.

On my PC, I had to swap _GetIP() for @IPAddress1 to get this working correctly. Not your problem I know but just thought I'd mention it.

I can use this in another script I'm writing so thanks again.

WBD

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
×
×
  • Create New...