AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Networking Question

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Sat Jul 24, 2004 3:55 pm    Post subject: Networking Question Reply with quote

Hi, I wanted to create a script to automatic change my network IP address from static to non-static and vice versa. Instead of simulating a bunch of keystrokes and arrow down and and arrow up keys...etc, could someone tell me what application within windows that would take me directly to the popup that would let me change my IP address. I want to create a script that using the Run command to run the application, hopefully this will minimize a bunch of simulated keystrokes.
Thanks ahead.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Sat Jul 24, 2004 4:19 pm    Post subject: Reply with quote

The best way might be to make a shortcut to the adapter in question, then run the shortcut as in this example:
run, properties "C:\Documents and Settings\Home\Desktop\LAN (CNet Pro).lnk"
sleep, 5000 ; The properties window will disappear when the script exits.

In case it's of interest, I believe there is at least one software utility out there to instantly change your IP configuration from (for example) work to home and vice versa. It might require a reboot, but maybe not even that on some systems.
Back to top
View user's profile Send private message Send e-mail
Larry
Guest





PostPosted: Sun Jul 25, 2004 4:43 am    Post subject: Reply with quote

If you are using Win2K or WinXP, research and use NETSH.EXE

Lar.
Back to top
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Sun Jul 25, 2004 6:24 am    Post subject: Thanks Larry Reply with quote

Hi Larry,
I found your response to be very helpful. Netsh.exe is exactly what I was looking for to switch back and forth from static and dhcp. Again, thank you very much.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group