It is currently November 26th, 2022, 8:21 am

[Bug] NowPlaying "ClosePlayer" not working with iTunes

Report bugs with the Rainmeter application and suggest features.
baleens spider
Posts: 1
Joined: April 15th, 2022, 2:22 am

[Bug] NowPlaying "ClosePlayer" not working with iTunes

Post by baleens spider »

I have a button that is supposed to close iTunes when pressed [!CommandMeasure "PlayerMeasure" "ClosePlayer"], and when it is pressed iTunes closes and the reopens after a few seconds. This does not happen every time, but seems to happen most times. I cannot find any links between this happening and whether or not iTunes is minimized. "TogglePlayer" has the same behavior when used to close iTunes. "OpenPlayer" and every other feature from NowPlaying i have tried works perfectly.
I am on iTunes version, (which is far beyond the stated tested version) and am on the most recent version of Rainmeter as of April 14 2021.
Relevant part of skin:

Code: Select all

ButtonCommand=[!CommandMeasure "PlayerMeasure" "OpenPlayer"]

ButtonCommand=[!CommandMeasure "PlayerMeasure" "ClosePlayer"]
User avatar
Rainmeter Sage
Posts: 4817
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: [Bug] NowPlaying "ClosePlayer" not working with iTunes

Post by Yincognito »

A bit late, but although I can't test this since I use good ol' Winamp as a player, I can still mention some things:
- if it does close but then reopens, maybe there is some iTunes resident app that's respawning the main process
- if all else fails, you can still use taskkill.exe in a RunCommand measure to achieve the same thing