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
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]
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 [/code]