I don't think you can have your internet connection start with opening Yahoo Messenger. BUT you can tell Yahoo Messenger to automatically log in when I connect to the internet.