get Access to MM MenuItems

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: get Access to MM MenuItems

Re: get Access to MM MenuItems

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

get Access to MM MenuItems

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 

Top