I have the following I am using:
Now all these things appear on the Ctrl-click menu. The problem is that if disabled then they shouldn't be in the menu, or they should appear disabled and unclickable, like on a normal menu. If winamp is closed and I have no connection to it, it doesn't make much sense for me to still have access to any of the commands other than "Open Winamp". And if it is active, then that one should not appear. This is pretty much cosmetic, but it seems like a reasonable behaviour to expect that disabled items would be missing or greyed out. (Preferably absent, since that makes a cleaner appearance imho).
<aliases>
<alias
name="Open_Winamp"
script="Open_Winamp"
match="OpenWinamp"
enabled="y"
menu="y"
sequence="100"
>
</alias>
</aliases>
<aliases>
<alias
name="Close_Winamp"
match="WinampKill"
group="WinAmp"
send_to="12"
menu="y"
sequence="100"
>
<send>winamp.stop
winamp.SendCommand("40001")
winamp=""
enablealias "Open_Winamp",1
enablegroup "WinAmp",0</send>
</alias>
<alias
name="Play"
match="WMPlay"
enabled="y"
group="WinAmp"
send_to="12"
menu="y"
sequence="100"
>
<send>winamp.play</send>
</alias>
.... Some other commands.
<alias
name="Stop"
match="WMStop"
enabled="y"
group="WinAmp"
send_to="12"
menu="y"
sequence="100"
>
<send>winamp.stop</send>
</alias>
</aliases>
dim winamp
sub Open_Winamp (name, output, wilds)
set winamp=createobject("WinampCOM.application")
if winamp.PlayListCount < 1 then
winamp.AddFile("C:\My Documents\My Music\Playlists\Favorites.m3u")
winamp.play
winamp.fastforward
end if
end subNow all these things appear on the Ctrl-click menu. The problem is that if disabled then they shouldn't be in the menu, or they should appear disabled and unclickable, like on a normal menu. If winamp is closed and I have no connection to it, it doesn't make much sense for me to still have access to any of the commands other than "Open Winamp". And if it is active, then that one should not appear. This is pretty much cosmetic, but it seems like a reasonable behaviour to expect that disabled items would be missing or greyed out. (Preferably absent, since that makes a cleaner appearance imho).