muhmuuh Posted May 14, 2008 Share Posted May 14, 2008 Hello! Is it possible to disconnect the internet and reconnect it again in AutoIt and if it is possible please ell me some functions I should look up. Thanks I ran. I ran until my muscles burned and my veins pumped battery acid. Then I ran some more. Link to comment Share on other sites More sharing options...
i542 Posted May 14, 2008 Share Posted May 14, 2008 Hello!Is it possible to disconnect the internet and reconnect it again in AutoIt and if it is possible please ell me some functions I should look up.ThanksTry with Run("ipconfig.exe /renew"). This renews IP (resets connection)You can also use /release parameter to disconnect (flush IP) and /renew to reconnect.Note: this works for all adapters. Otherwise enter something like Run('ipconfig.exe /renew "Local Area Connection"') I can do signature me. Link to comment Share on other sites More sharing options...
sandin Posted May 14, 2008 Share Posted May 14, 2008 if you use dial up authentication method maybe this will help you:#include <Constants.au3> Run(@ComSpec & " /c " & "rasdial /disconnect", "", @SW_HIDE ,$STDERR_CHILD + $STDOUT_CHILD);disconnect $connecton_name = "ADSL_INTERNET" $Connection_username = "username" $connection_password = "password" Run(@ComSpec & " /c " & "rasdial " & $connecton_name & " " & $Connection_username _ & " " & $connection_password, "", @SW_HIDE ,$STDERR_CHILD + $STDOUT_CHILD);connectand for $connection_name you can see scriptomatic's WMI to retrieve your connection's name, or maybe even this can help you:http://www.autoitscript.com/forum/index.ph...amp;hl=internethttp://www.autoitscript.com/forum/index.ph...9535&hl=wmi Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll 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