Automatically Perform Action (Wifi)?

Some people have done it, it depends in part on which router you have. See the following thread (this is a clickable link)