<?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: VBS Script recording with Pause in Additional Q&amp;A</title>
    <link>https://community.sap.com/t5/additional-q-a/vbs-script-recording-with-pause/qaa-p/8639524#M90735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the following in my scripts to pause the script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; Wshell&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CreateObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"WScript.Shell"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;wscript.sleep&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;100&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;You can change the milliseconds from 100 to whatever works best for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;Umur&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2012 17:36:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-30T17:36:10Z</dc:date>
    <item>
      <title>VBS Script recording with Pause</title>
      <link>https://community.sap.com/t5/additional-q-a/vbs-script-recording-with-pause/qaq-p/8639523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus,&lt;/P&gt;&lt;P&gt;I have managed to have SAP create a VBS script with the Record and Playback function. I am using it for my Picking Progress (TC LT45) Also I can run it without problems. However, I am looking for a Pause / Wait function after the F8&lt;/P&gt;&lt;P&gt;There seem to be a number of options to build in a Pause. I have not managed to make it work. Is there a way? XThanks for your input.&lt;/P&gt;&lt;P&gt;Nick &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://community.sap.com/5.0.1/images/emoticons/confused.gif" width="1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If Not IsObject(application) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set SapGuiAuto&amp;nbsp; = GetObject("SAPGUI")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set application = SapGuiAuto.GetScriptingEngine&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;If Not IsObject(connection) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set connection = application.Children(0)&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;If Not IsObject(session) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set session&amp;nbsp;&amp;nbsp;&amp;nbsp; = connection.Children(0)&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;If IsObject(WScript) Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; WScript.ConnectObject session,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "on"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; WScript.ConnectObject application, "on"&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").resizeWorkingPane 263,47,false&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").sendVKey 8&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").sendVKey 3&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").sendVKey 8&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").sendVKey 3&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").sendVKey 8&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").sendVKey 3&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").sendVKey 8&lt;/P&gt;&lt;P&gt;session.findById("wnd[0]").sendVKey 3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 14:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/vbs-script-recording-with-pause/qaq-p/8639523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-30T14:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: VBS Script recording with Pause</title>
      <link>https://community.sap.com/t5/additional-q-a/vbs-script-recording-with-pause/qaa-p/8639524#M90735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the following in my scripts to pause the script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; Wshell&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CreateObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"WScript.Shell"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;wscript.sleep&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;100&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;You can change the milliseconds from 100 to whatever works best for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;Umur&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 17:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/additional-q-a/vbs-script-recording-with-pause/qaa-p/8639524#M90735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-30T17:36:10Z</dc:date>
    </item>
  </channel>
</rss>

