Sign in to follow this  
Followers 0
ConfidenceMan

Help on an Ip Changer

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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.

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... :whistle:

Edited by PaulIA

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by P a R a D o X

If I hadn't said thank you yet, and you deserve it, than thank you...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

*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...

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0