James Posted August 26, 2007 Share Posted August 26, 2007 Hey all, I have seen many requests for this: $con = MsgBox(4, "IPChanger", "Do you wish to change your IP?") If $con = 6 Then ShellExecute("cmd", "ipconfig /release", @WindowsDir) ShellExecute("cmd", "ipconfig /renew", @WindowsDir) EndIf -James Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Michel Claveau Posted August 26, 2007 Share Posted August 26, 2007 Hi! This code is only for DHCP ; right? Link to comment Share on other sites More sharing options...
James Posted August 26, 2007 Author Share Posted August 26, 2007 Yes I would guess so. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
testingtest Posted August 27, 2007 Share Posted August 27, 2007 I don't think it changes your ip right away though Link to comment Share on other sites More sharing options...
websailor Posted August 27, 2007 Share Posted August 27, 2007 Hey all, I have seen many requests for this: $con = MsgBox(4, "IPChanger", "Do you wish to change your IP?") If $con = 6 Then ShellExecute("cmd", "ipconfig /release", @WindowsDir) ShellExecute("cmd", "ipconfig /renew", @WindowsDir) EndIf -James what language is this? java or vbs...! Link to comment Share on other sites More sharing options...
James Posted August 27, 2007 Author Share Posted August 27, 2007 AutoIt. Thus being on the AutoIt forum. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
testingtest Posted August 27, 2007 Share Posted August 27, 2007 what language is this? java or vbs...!Autoit using the command prompt functions. I guess this script is good if your lazy or don't know cmd very well but good job if only it worked faster Link to comment Share on other sites More sharing options...
martin Posted August 27, 2007 Share Posted August 27, 2007 Hey all, I have seen many requests for this: $con = MsgBox(4, "IPChanger", "Do you wish to change your IP?") If $con = 6 Then ShellExecute("cmd", "ipconfig /release", @WindowsDir) ShellExecute("cmd", "ipconfig /renew", @WindowsDir) EndIf -James This isn't going to change the ip address is it? Or there's no guarantee that it will. You could get the same address again. If you want to actually change the ip address then it's likely that you want to change it to a specific address, and then you could use an ip input box and netsh like Cramaboule did. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Xenobiologist Posted August 27, 2007 Share Posted August 27, 2007 HI, this is nearly useless. It will ( even when ) only change the lan IP. If you are connecting to the internet via router and DHCP I do not see any use for it. Anyway :-) So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
jvanegmond Posted August 27, 2007 Share Posted August 27, 2007 I have my lan ip's fixed, else I will forget them on the next DHCP release. github.com/jvanegmond 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