<?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: Copy File to Clipboard in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Copy-File-to-Clipboard/m-p/87042#M37810</link>
    <description>&lt;P&gt;If sending the keystokes manually works,&amp;nbsp; have you tried using Surface Automation techniques and using Global Sendkeys to send your Ctrl-C and Ctrl-V key strokes rather than using your own code?&amp;nbsp; It seems strange to try building your own code rather than using functionality built into the Blue Prism product?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 11:22:00 GMT</pubDate>
    <dc:creator>Denis__Dennehy</dc:creator>
    <dc:date>2023-10-04T11:22:00Z</dc:date>
    <item>
      <title>Copy File to Clipboard</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Copy-File-to-Clipboard/m-p/87041#M37809</link>
      <description>&lt;P&gt;Hello, I ran into some issues when trying to copy a file to clipboard and then pasting it into an application later on.&amp;nbsp; I've tried a few Custom code solutions:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;C#:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;SPAN&gt;StringCollection paths = new StringCollection();&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;SPAN&gt;paths.Add(File_Path);&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;SPAN&gt;Clipboard.SetFileDropList(paths);&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This throws an error in Code Check - &lt;CODE&gt;Compiler error at line 0: The modifier 'public' is not valid for this item&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Visual Basic:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;SPAN&gt;Dim f() As String = {filePath}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;SPAN&gt;Dim d As New DataObject(DataFormats.FileDrop, f)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;SPAN&gt;System.Windows.Forms.Clipboard.SetDataObject(d, True)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This one seems to be working when pasting the file to another folder. When I run this stage I do get the file in the clipboard and I can successfully paste it into different folder, however when I perform Ctrl+v on the app(both manually and via bp), it does not work. When I try to Ctrl+c the file manually and Ctrl+v it into the app(again both manually and via bp) it works, so I wonder if there is any difference between me ctrl+c'ing the ifle and getting it to clipboard via script? If so what is the difference and how can I get it to work the same as if I was doing it by hand?&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tadas Cirklys&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2023 11:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Copy-File-to-Clipboard/m-p/87041#M37809</guid>
      <dc:creator>TadasCirklys</dc:creator>
      <dc:date>2023-10-02T11:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: Copy File to Clipboard</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Copy-File-to-Clipboard/m-p/87042#M37810</link>
      <description>&lt;P&gt;If sending the keystokes manually works,&amp;nbsp; have you tried using Surface Automation techniques and using Global Sendkeys to send your Ctrl-C and Ctrl-V key strokes rather than using your own code?&amp;nbsp; It seems strange to try building your own code rather than using functionality built into the Blue Prism product?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 11:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Copy-File-to-Clipboard/m-p/87042#M37810</guid>
      <dc:creator>Denis__Dennehy</dc:creator>
      <dc:date>2023-10-04T11:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: Copy File to Clipboard</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Copy-File-to-Clipboard/m-p/87043#M37811</link>
      <description>&lt;P&gt;Hi Tadas,&lt;/P&gt;
&lt;P&gt;I'd suggest posting your question on the &lt;A href="https://community.blueprism.com/communities/community-home-prod?CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01"&gt;Blue Prism community forum&lt;/A&gt; instead of the Process Intelligence community. More eyes that know Surface Automation are on that community page, and can help you. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Alex Him&lt;BR /&gt;Solution Engineer&lt;BR /&gt;SS&amp;amp;C Blue Prism&lt;BR /&gt;New York, NY&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Oct 2023 15:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Copy-File-to-Clipboard/m-p/87043#M37811</guid>
      <dc:creator>alexhim</dc:creator>
      <dc:date>2023-10-05T15:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Copy File to Clipboard</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Copy-File-to-Clipboard/m-p/87044#M37812</link>
      <description>&lt;P&gt;I'll move this over to the Blue Prism forum for you!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":blue_heart:"&gt;💙&lt;/span&gt; Michael &lt;BR /&gt;(I'm part of the SS&amp;amp;C Blue Prism Community Team)&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Oct 2023 15:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Copy-File-to-Clipboard/m-p/87044#M37812</guid>
      <dc:creator>Michael_S</dc:creator>
      <dc:date>2023-10-05T15:48:00Z</dc:date>
    </item>
  </channel>
</rss>

