message to max from JS

Julien Bayle's icon

Hi there,
is there a way to send message to max using only JS ?

(I mean without using (; max .....) message objects )

Any leads would be cool.

willyc's icon

From the javascript documentation:

You can access the globally available max object and call methods on it, e.g. to wrap up turning overdrive on/off in a js function:

function setOverdriveState(state) {
max.preempt(state);
}