<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Paste Clipboard Contents into STRING in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/paste-clipboard-contents-into-string/m-p/8705973#M15914</link>
    <description>&lt;P&gt;that is wonderful, thank you so much!&amp;nbsp; it took me an hour to figure out i had to update powershell. works like a charm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;david&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;gt;&amp;lt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 22:08:30 GMT</pubDate>
    <dc:creator>TK.421</dc:creator>
    <dc:date>2019-04-03T22:08:30Z</dc:date>
    <item>
      <title>Paste Clipboard Contents into STRING</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/paste-clipboard-contents-into-string/m-p/8704930#M15912</link>
      <description>&lt;P&gt;Is it possible to paste whatever text I've copied from somewhere else into a string? Something along the lines of:&lt;/P&gt;
&lt;PRE&gt;STRING paste = CLIPBOARD PASTE
message info $paste&lt;/PRE&gt;
&lt;P&gt;thanks in advance&lt;/P&gt;
&lt;P&gt;david&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;gt;&amp;lt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 15:46:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/paste-clipboard-contents-into-string/m-p/8704930#M15912</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2019-04-03T15:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Paste Clipboard Contents into STRING</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/paste-clipboard-contents-into-string/m-p/8705400#M15913</link>
      <description>&lt;P&gt;GetClip.mac:&lt;/P&gt;
&lt;PRE&gt;FUNCTION MAIN() {
   STRING bat= macro_path(0)+"\getClip.bat"
   STRING file1= macro_path(0)+"\getClip.txt"
   STRING file2= macro_path(0)+"\getClip.OK"
   IF file_exists($file1) {
      DELETE FILE $file1
   }
   IF file_exists($file2) {
      DELETE FILE $file2
   }
   STRING cmd='powershell -command "Get-Clipboard" &amp;gt;"'+$file1+'"' +crlf+'ECHO OK &amp;gt;"'+$file2+'"'
   FILE OPEN $bat FOR WRITE AS "output"
   FILE WRITE $cmd TO "output"
   FILE CLOSE "output"
   OLE FILEACTION "OPEN" $bat
   WHILE NOT file_exists($file2) {
      INT I=0
   }
   STRING Clipboard=""
   FILE OPEN $file1 FOR READ AS "file1"
   FILE READ $Clipboard FROM "file1"
   FILE CLOSE "file1"
   DELETE FILE $file1
   DELETE FILE $file2
   print=$Clipboard
}
&lt;/PRE&gt;
&lt;P&gt;ToClip.mac: - for&amp;nbsp;entity context menu - such as model&lt;/P&gt;
&lt;PRE&gt;FUNCTION MAIN(STRING S ) {
STRING P= macro_path(0)+"\ToClip.bat"
STRING CLIP="ECHO | SET /P=" +$S+" | CLIP"
 FILE OPEN $P FOR WRITE AS "output"
      FILE WRITE $Clip TO "output"
      FILE CLOSE "output"
 OLE FILEACTION "OPEN" $P
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Apr 2019 18:06:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/paste-clipboard-contents-into-string/m-p/8705400#M15913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-03T18:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Paste Clipboard Contents into STRING</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/paste-clipboard-contents-into-string/m-p/8705973#M15914</link>
      <description>&lt;P&gt;that is wonderful, thank you so much!&amp;nbsp; it took me an hour to figure out i had to update powershell. works like a charm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;david&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;gt;&amp;lt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 22:08:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/paste-clipboard-contents-into-string/m-p/8705973#M15914</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2019-04-03T22:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Paste Clipboard Contents into STRING</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/paste-clipboard-contents-into-string/m-p/8707630#M15915</link>
      <description>&lt;P&gt;the finished product is attached of what I wanted to use the clipboard for. I,J,K values copied from another program&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks again&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 14:01:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/paste-clipboard-contents-into-string/m-p/8707630#M15915</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2019-04-04T14:01:45Z</dc:date>
    </item>
  </channel>
</rss>

