It is currently April 26th, 2024, 5:32 pm

[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 12.12.3.5, (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

[MeterOpenPlayer]
Meter=Button
ButtonImage=#@#open_player.png
X=33
Y=100
ButtonCommand=[!CommandMeasure "PlayerMeasure" "OpenPlayer"]

[MeterClosePlayer]
Meter=Button
ButtonImage=#@#close_player.png
X=97
Y=100
ButtonCommand=[!CommandMeasure "PlayerMeasure" "ClosePlayer"]
User avatar
Yincognito
Rainmeter Sage
Posts: 7172
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
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth