how do I make my computer only play through my speaker even if headphones are plugged in?

Harald,

Check out the screenshot.

Open [Control Panel] > [Sound] > [Manage audio devices]

From there, click the device you wish to activate, and click [Set Default]. I wanted to switch between speakers and permanently plugged-in headphones, so I threw a shortcut to the [Manage audio devices] window directly onto my desktop (see image). You may use this to easily switch between the devices.!

http://www.rhwdesigns.com/SolarEclipse/