get Access to MM MenuItems

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

aragonthebest
Posts: 1
Joined: Fri Nov 15, 2019 7:40 am

get Access to MM MenuItems

Post by aragonthebest » Fri Nov 15, 2019 7:49 am

Hi, I want to call a function, when the "play"-button is clicked. But I want it to work with the play button which is created by MM and not by myself. Is this even possible?

Here is my code:

Code: Select all

  
Sub OnStartup 
 	Set Play = SDB.UI.Menu_File
	'Play.OnClickFunc = "BtnClick"

 	Script.RegisterEvent Play, "OnClick", "BtnClick"
End Sub


Sub BtnClick(Play)
  MsgBox ("Wow, button clicked!") 
End Sub 

Peke
Posts: 12494
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: get Access to MM MenuItems

Post by Peke » Sun Nov 17, 2019 4:46 pm

Best regards,
Pavle
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum

Post Reply