Ok, so I tried that, but it didn't work. So I tried running the troubleshooter again, and apparently this time it found the problem
. The problem was the wifi adapter was off. I'm not sure why the wifi button didn't work, also It's wierd how my wifi turns off whenever I use a cable connection. Anyway, thanks for your help in fixing this problem.