<?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>Question Re: SAPGUI scripting (or other method) screen capture in Additional Q&amp;A</title>
    <link>https://community.sap.com/t5/additional-q-a/sapgui-scripting-or-other-method-screen-capture/qaa-p/1979498#M8825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 functions for taking screenshots available via sapgui scripting api (). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GuiMainWindow object exposes &lt;/P&gt;&lt;P&gt;- HardCopy (writes hardcopy into bmp file )&lt;/P&gt;&lt;P&gt;- HardCopyToMemory (returns the hardcopy as memory block to caller)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A) Using that sapgui scripting api function HardCopy you can assign path and filename for your screenshot.&lt;/P&gt;&lt;P&gt;To load the bmp from file into word, you could try to use Words scripting API, (but I do not know whether MS exposes to Insert-&amp;gt;Picture-&amp;gt;FromFile function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B) On the other hand you could try to use HardCopyToMemory from any vb script and use some API functions microsoft might provide for clipboard access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 18:27:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-21T18:27:01Z</dc:date>
    <item>
      <title>SAPGUI scripting (or other method) screen capture</title>
      <link>https://community.sap.com/t5/additional-q-a/sapgui-scripting-or-other-method-screen-capture/qaq-p/1979497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need a full bitmap image of SAPGUI screens for our audit department.  I have been using a combination of Windows Scripting and SAPGUI Scripting.  The one issue I am have is that I can't send the "Print Screen" key using the SendKeys Method in WSH.  I want to paste the image directly into MS Word.  (which I already can do, if I just had the image on the clipboard).  Can someone tell me how I can get a SAPGUI screen shot to the clipboard programmatically?  (or if someone knows a SAPGUI control code that might solve my issue also).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jason Wierek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 20:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/sapgui-scripting-or-other-method-screen-capture/qaq-p/1979497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T20:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAPGUI scripting (or other method) screen capture</title>
      <link>https://community.sap.com/t5/additional-q-a/sapgui-scripting-or-other-method-screen-capture/qaa-p/1979498#M8825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 functions for taking screenshots available via sapgui scripting api (). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GuiMainWindow object exposes &lt;/P&gt;&lt;P&gt;- HardCopy (writes hardcopy into bmp file )&lt;/P&gt;&lt;P&gt;- HardCopyToMemory (returns the hardcopy as memory block to caller)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A) Using that sapgui scripting api function HardCopy you can assign path and filename for your screenshot.&lt;/P&gt;&lt;P&gt;To load the bmp from file into word, you could try to use Words scripting API, (but I do not know whether MS exposes to Insert-&amp;gt;Picture-&amp;gt;FromFile function).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B) On the other hand you could try to use HardCopyToMemory from any vb script and use some API functions microsoft might provide for clipboard access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 18:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/sapgui-scripting-or-other-method-screen-capture/qaa-p/1979498#M8825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T18:27:01Z</dc:date>
    </item>
  </channel>
</rss>

