applemusicrp
applemusicrp copied to clipboard
(Windows) iTunes re-opening itself
If you close iTunes while AppleMusicRP is running, it will reopen itself.
The code that handles this and causes this is here
Was scrolling through GitHub and found this issue,
When integrating win32com to iTunes, it will always attempt to find that process, even if it is closed. This causes the effect of reopening the program.
Fixing it should be easy enough. Within the win32com documentation (should be) instructions on how to kill a dispatch hook. Simply killing it will make sure it doesn't spawn again. Implementation is as easy as setting a flag for hooking to iTunes for the first time since the program is ran, and then killing the win32com variable as soon as iTunes is not detected.
Was scrolling through GitHub and found this issue,
When integrating win32com to iTunes, it will always attempt to find that process, even if it is closed. This causes the effect of reopening the program.
Fixing it should be easy enough. Within the win32com documentation (should be) instructions on how to kill a dispatch hook. Simply killing it will make sure it doesn't spawn again. Implementation is as easy as setting a flag for hooking to iTunes for the first time since the program is ran, and then killing the win32com variable as soon as iTunes is not detected.
Thank you for this! I'll try it soon
Thank you for this! I'll try it soon
Any luck so far?
on windows, you can kill the task with a simple vbs script.
Set WshShell = CreateObject("WScript.Shell") WshShell.Run "taskkill /f /im AppleMusicRP.exe"
save as stopAppleMusicRP.vbs
on windows, you can kill the task with a simple vbs script.
Set WshShell = CreateObject("WScript.Shell") WshShell.Run "taskkill /f /im AppleMusicRP.exe"
save as stopAppleMusicRP.vbs
that would be a good idea to bodge, but it would probably be easier to just implement it directly into the script. i haven't been here for a while as ive been working on my own version, but we use the same library.