McGod Posted July 12, 2007 Share Posted July 12, 2007 I was hunting for awhile and finally came across a cmd that would disconnect/connect internet.It only works for broadband although the command has dialup access aswell(Cant test no dialup)It has 4 Functions:_INetConnect($Service, $Username, $Password)Will connect the serviceReturn Values:1=Connected0=Bad User/Pass-1=Other error(Have to research em)_INetDisconnect($Service)Will disconnect the serviceReturn Values:1=Disconnected0=Errored_INetStatus($Service)Will check the status of a serviceReturn Values:1=Connected0=Disconnected_INetReconnect($Service, $Username, $Password)Will disconnect and reconnect the internet.Return Values:1=Reconnected0=Bad user/passExample Script:#include <INetCon.au3> If _INetStatus("Sympatico") = 0 Then _INetConnect("Sympatico", "b1xxxxx", "xxxxx") Else _INetDisconnect("Sympatico") EndIfInetCon.au3Hopefully it will help people. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u] Link to comment Share on other sites More sharing options...
Obi-w00t Posted July 12, 2007 Share Posted July 12, 2007 Thanks for sharing, nice script. Link to comment Share on other sites More sharing options...
James Posted July 12, 2007 Share Posted July 12, 2007 Haha nice Always useful for me. I have many internet reconnectors Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
goldenix Posted May 24, 2008 Share Posted May 24, 2008 Many thanx. Works like a charm with my Dial up connection.To get your Dial up connection name (in this example its called Sympatico) do this: Right click on your dial up desktop shortcut -> Properties -> Find target My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
t0bias Posted May 29, 2008 Share Posted May 29, 2008 hey, is it possible to expand the functionality to pass actual dialup numbers instead of only user/pass? 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