Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to pause Foobar2000 on locking Windows

📅 2011-Apr-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ foobar2000 ⬩ 📚 Archive


I sometimes listen to music using headphones while working at the computer. A longstanding dream of mine has been to see the music playback being intelligent to my presence. I wish the music would pause whenever I removed the headphones or left the computer. Also, the music would play from where it had paused when I return and put the headphones back on. This requires some sensory capability in the headphones or in the computer, so it is not possible right now without extra equipment like a headphone sensor or the Kinect.

It is however possible to pause the music whenever I lock the computer and play from where it had paused when I return and unlock the computer! Not my dream exactly, but I will take what I can get! 😊

I listen to music using Foobar2000 and this can be achieved in it by using the Pause on Lock component. Download it from here and install it. To enable the feature in Foobar2000, choose PlaybackPause on Lock.

Tried with: Pause on Lock 0.5 and Foobar2000 1.0

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧