Use of this.patcher.window....
Hi, is there any js documentation on this.patcher.window anywhere?
The doc for thispatcher doesn't seem to tie up completely, e.g.
you send 'window flags float' to thispatcher, but you call this.patcher.window( "float" ) - i.e. the "flags" isn't specified
but how does this mean you call "window size 100 100 200 200" - should the size be dropped here (clearly not) - how should the 4 parameters be passed - an array 4 seperate args? I can't get this to work
Also, "window getsize" sends the output out of an outlet - how is this accessed in js? do we have to execute the "window getsize" outside of the js and send the result in an inlet
any help on using this stuff from js would be greatly appreciated... thx Lee
I should add a little more context here, i've already executed the code:
this.patcher.window( "nomenu" );
this.patcher.window( "float" );
this.patcher.window( "exec" );
so i have a floating window and this is what I am trying to control and hence cannot use the this.patcher.wind object as it does not refer to the floating window at this point - this is launched from inside a m4l device...
Hi, anyone any help here? thx
The following code works for me, using the thispatcher technique that you're employing. Haven't tried it in M4L, but this works in Max.
Best, Jeremy
autowatch = 1;
var tog = 0;
function bang()
{
tog = !tog;
if (tog) {
this.patcher.window("flags", "float");
this.patcher.window("flags", "nomenu");
this.patcher.window("size", 100, 100, 500, 500);
this.patcher.window("exec");
} else {
this.patcher.window("flags", "nofloat");
this.patcher.window("flags", "menu");
this.patcher.window("size", 100, 100, 300, 300);
this.patcher.window("exec");
}
}
Hi, yeah, works fine in MAX but doesn't have desired effect for floating windows in M4L....