i try to pass an argument to my function with popupmenu but nothig...
this is my menu:
- Code: Select all
var menu = plugins.window.createPopupMenu()
_sub = menu.addMenuItem()
_sub.text = 'text'
_sub.setMethod(new1)
_sub.methodArguments = [1, "data"]
my function:
- Code: Select all
function new1(args) {
application.output(args[0])
}
i want to pass also the event is it possible?
thanks