Use of this.patcher.window....

    Mar 19 2013 | 6:46 am
    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

    • Mar 19 2013 | 6:57 am
      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...
    • Mar 20 2013 | 3:10 pm
      Hi, anyone any help here? thx
    • Mar 20 2013 | 5:31 pm
      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);
      	} else {
      		this.patcher.window("flags", "nofloat");
      		this.patcher.window("flags", "menu");
      		this.patcher.window("size", 100, 100, 300, 300);
    • May 01 2013 | 8:20 pm
      Hi, yeah, works fine in MAX but doesn't have desired effect for floating windows in M4L....