this will show in right click on the main panel:
mainMenuItem = DirectCast(mbApiInterface.MB_AddMenuItem("context.Main/Last.fm Playlist", Nothing, Nothing), ToolStripMenuItem)
add sub-menus if needed to mainMenuItem
in the click handler for a menu item to get the selected files:
if mbApiInterface.Library_QueryFiles("domain=SelectedFiles") then
do
filename = mbApiInterface.Library_QueryGetNextFile()
if filename is nothing then exit do
add filename to a list
loop
end if