ConfidenceMan Posted November 7, 2006 Share Posted November 7, 2006 Here is what i have so far.. its not much. HotKeySet("{insert}", "Release") HotKeySet("{Home}", "Renew") HotKeySet("{delete}", "Terminate") While 1 Sleep (100) Wend Func Terminate() Exit 0 EndFunc Func Release() RunWait(@COMSPEC & " /c Dir C:\") EndFunc Func Renew() EndFunc Basically what i want it to do is when-ever i press insert it would release my Ip and Home will renew it etc. {RunWait(@COMSPEC & " /c Dir C:\")} --I got that from the help file but i know its not the right one. well... ill keep workin on it, if anyone can help please reply. Interest is only a word for self reasurance Link to comment Share on other sites More sharing options...
herewasplato Posted November 7, 2006 Share Posted November 7, 2006 Open Notepad. Type these lines in it: ipconfig /release ipconfig /renew pause ipconfig /all pause Save it with a name like RR.BAT Run that batch file... if you like what it does, work it into an AutoIt3 script if you see the need. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
PaulIA Posted November 7, 2006 Share Posted November 7, 2006 (edited) Here is what i have so far.. its not much.HotKeySet("{insert}", "Release")HotKeySet("{Home}", "Renew")HotKeySet("{delete}", "Terminate")While 1 Sleep (100)WendFunc Terminate() Exit 0EndFuncFunc Release()RunWait(@COMSPEC & " /c Dir C:\")EndFuncFunc Renew()EndFuncBasically what i want it to do is when-ever i press insert it would release my Ip and Home will renew it etc.{RunWait(@COMSPEC & " /c Dir C:\")} --I got that from the help file but i know its not the right one. well... ill keep workin on it, if anyone can help please reply.You could us IPConfig (or something simliar based on your OS) in the Relase statement. At a DOS prompt, type "ipconfig /?" for more info.Edit: Plato beat me by mere seconds... Edited November 7, 2006 by PaulIA Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
Vindicator Posted November 7, 2006 Share Posted November 7, 2006 (edited) I think this might ruin the figure-it-out-your-self, but if you want like a snap snap ip renewer, you might want to mess with a batch file that looks like this: @echo off cls echo ----------------------------------- echo IP renewer echo ----------------------------------- pause cls ipconfig /flushdns ipconfig /registerdns ipconfig /setclassid ipconfig /release ipconfig /renew ipconfig /renew echo ----------------------------------- cls echo IP sucessfully changed. pause and you could probably have a hotkey run that... Edited November 7, 2006 by P a R a D o X If I hadn't said thank you yet, and you deserve it, than thank you... Link to comment Share on other sites More sharing options...
ConfidenceMan Posted November 7, 2006 Author Share Posted November 7, 2006 Anyhow I did Figure-it-out and it works nice. HotKeySet("{insert}", "Refurbish") HotKeySet("{delete}", "Terminate") While 1 Sleep (100) Wend Func Terminate() Exit 0 EndFunc Func Refurbish() RunWait(@COMSPEC & " /c ipconfig/release") RunWait(@COMSPEC & " /c ipconfig/renew") EndFunc its very simple eh? Interest is only a word for self reasurance Link to comment Share on other sites More sharing options...
Vindicator Posted November 7, 2006 Share Posted November 7, 2006 *urk* yea, that works too....yea... I totally knew that....totally... If I hadn't said thank you yet, and you deserve it, than thank you... 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