Jump to content

Help on an Ip Changer


Recommended Posts

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

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

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
Link to comment
Share on other sites

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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...