get Access to MM MenuItems

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

Moderators: Gurus, Addon Administrators

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

get Access to MM MenuItems

Post by aragonthebest »

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: 17892
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: get Access to MM MenuItems

Post by Peke »

Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply