<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Hi,</p>
    <p><br>
    </p>
    <p>your problem is that Pd writes the messages to stderr, but the
      pipe operator reads from stdout. You can redirect stderr to stdout
      with "2>&1" before filtering the output (should also work
      in modern Powershell).<br>
    </p>
    <p><br>
    </p>
    <p>Christof<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 24.05.2020 22:50, Henri Augusto
      Bisognini wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CY4PR17MB1446EC51530807B56548EBF9CCB20@CY4PR17MB1446.namprd17.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        Hey list! Hope you're all well!<br>
        <br>
        I'm debugging communication between the core and the gui with
        "-d 3"  and i want to filter out all those mouse "motion" and
        "coords" events in PowerShell.<br>
        <br>
        I'm trying</div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        <span style="font-family: Calibri, Helvetica, sans-serif;
          font-size: 12pt;"><br>
        </span></div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        <b>./pd.com -d 3  | ? {$_ -notlike "*motion*"}</b><br>
      </div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        <br>
        But it doesn't work. Interestingly this one does work:<br>
        <br>
        <b>"abc", ".x695480 motion 208.0 124.0 0;", "efg" | ? {$_
          -notlike "*motion*"}</b></div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        <b><br>
        </b></div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        Whats wrong?</div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        <br>
      </div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        Cheers,</div>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);">
        Henri.<br>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Pd-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a>
<a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-dev">https://lists.puredata.info/listinfo/pd-dev</a>
</pre>
    </blockquote>
  </body>
</html>