Hello.I'm kind of new to programming,I'd like to know :
Can you create a program wich for example,disconnects and then connects back to the internet ? Like running a program and then automatically pressing buttons.I hope you understand :D Thank you.
Yes you can create a program to do this. The easiest way to achieve this is to change the gateway IP address to a localhost address. All other network traffic should work fine except the Internet connection.
To the other guys posting solutions, please ensure your facts are correct before posting a solution. While this is a networking and programming question what he asks is possible in numerous ways.