Hi Tom, my name is ***** ***** I'll be happy to help you with this!
The pop-up message that came onto your screen was not legitimate. This is a scam that is going around right now where you will encounter a message saying that your computer has been hacked or you have a virus or something along those lines and that you need to call a number to have the problem fixed. The whole thing just a ploy to get money from you.
The way it works is that small tech companies will pay third-party advertisers to insert their phone numbers into these pop up messages. So what you're actually seeing is a carefully crafted advertisement. As you experienced, once you call the number they will try to sell you on a support package.
Sometimes these companies will claim to be Microsoft (or a Microsoft partner) or HP or some other well known company. However, Microsoft has released a statement saying they never contact customers directly about computer issues and that all contact must first be initiated by the customer.
If you receive these messages in the future, simply close them out. If it won't let you close it out, then you can hold down the power button on your computer for 5 to 10 seconds to do a hard shutdown. Once you restart your computer the message should be gone.
Regarding the money you spent, you can request a refund from the company. If they refuse it give it back to you, you can call your bank and have them do what's called a chargeback, where they reverse the charge.
If you have any other questions on this, just let me know and I'll be happy to answer them for you.
NOTE: If you have no further questions, please use the rating box at the top of the page to rate the answer at least 3 STARS/OK SERVICE or better to end our session for now. I will standby until the answer has been rated.