GodandRock Posted December 24, 2005 Share Posted December 24, 2005 hi ppl....wat i want to do is that open up "local area connection"...then click the "disable" button, and then open up "local area connection" again...i want to do this because my net sumtimes stops working if u stop activity for a long time, and all i have to do is reset the net by disabling and enabling again....however i want to achieve this through autoit, but i cant seem to do it...i tried the "Run" function, but it wont work becuase local area connection isnt really a file...wen i went to properties of the shortcut, it told me that the target is "{BA126ADB-2166-11D1-B1D0-00805FC1270E}"...so i dont know how i can tell autoit to open up local area connection and disable it, then enable it again...i hope u understand wat i mean, and if u dont, tell me wat part u dont understand and ill elaborate...... thank you [font="Fixedsys"][size="3"][u][font="Franklin Gothic Medium"] [/font][/u][/size][/font] Link to comment Share on other sites More sharing options...
MrSpacely Posted December 25, 2005 Share Posted December 25, 2005 If its really the inactivity wich causes the connection to stop. The way people often use is to ping a host outside of the network (like google.com) to keep activity on the network. Maybe that could work. Only if its really the activity... Link to comment Share on other sites More sharing options...
GodandRock Posted December 25, 2005 Author Share Posted December 25, 2005 that is not wat im having problems with rite now, i already know how to keep me active....the problem is how to execute local area connection...i tried out slimshady's shellexecute, but im having problems with that, it gives me errors....for rite now wat im doing is that i assigned a hotkey to the shortcut and told auto it to SEND that hotkey...this is a really crappy way so i hope sumone can tell me how i can really execute local area connections.... thank you [font="Fixedsys"][size="3"][u][font="Franklin Gothic Medium"] [/font][/u][/size][/font] Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted December 25, 2005 Moderators Share Posted December 25, 2005 Why not use: RunWait("ipconfig /release") RunWait("ipconfig /renew") Link to comment Share on other sites More sharing options...
GodandRock Posted December 25, 2005 Author Share Posted December 25, 2005 Why not use: RunWait("ipconfig /release") RunWait("ipconfig /renew") u sure thats the same thing as going to local area connection then disabling, then reenabling???because i think that that function actually gives u a different ip address, while wat i usually do does not... [font="Fixedsys"][size="3"][u][font="Franklin Gothic Medium"] [/font][/u][/size][/font] Link to comment Share on other sites More sharing options...
erebus Posted December 25, 2005 Share Posted December 25, 2005 It depends. If you use a static lease in your DHCP it will always give you the same IP. 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