How can I set up a Python script to detect when Spotify opens?

0
8
Asked By CuriousCat42 On

I'm looking for a way to create a Python script that will alert me whenever Spotify is opened on my computer. My family has been using my Spotify account without permission, and I want to have a notification pop up telling them to use guest mode instead. Any suggestions on how to achieve this?

2 Answers

Answered By CodeNinja99 On

Honestly, what you're describing sounds a bit extreme. Trying to track process openings like that feels more like creating a virus than any helpful app. It's really not an ideal situation, and there might be better ways to handle your family's access to your account.

Answered By TechSavvyTom On

You might want to check out a library called psutil. It can help you monitor processes by polling, but just note that it won't give you real-time alerts when an app launches. It's probably a good idea to consider securing your account instead. Maybe just lock your PC or set up guest accounts for your family to avoid any issues with your Spotify credentials.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.