Page 1 of 1

get Access to MM MenuItems

Posted: Fri Nov 15, 2019 7:49 am
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 

Re: get Access to MM MenuItems

Posted: Sun Nov 17, 2019 4:46 pm
by Peke