I continued getting the problem, so I lastly tried what you said, I disabled avast for 10 minutes and well, it worked perfectly again.
Thanks, would have never thought it was the antivirus, I don't see why it would do something with something that is trusted like RuneScape. Now looking for...