<?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 Scroll ListBox by Macro with SendKeys PGDN in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235934#M393152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question concerning the SendKeys command in QV macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to scroll a listbox by button. First we set the fokus on it and after this a macro is executed to scroll one page down:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;sub makro_sel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;set Shell = CreateObject("WScript.Sh&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;&lt;SPAN style="color: #999999;"&gt;ell")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;Shell.SendKeys "{PGDN}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;end sub&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the macro does't work, nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally the SendKeys command works, i tried this and it's fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;sub makro_sel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;set Shell = CreateObject("WScript.Sh&lt;SPAN lang="EN-US"&gt;ell")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;SPAN style="color: #999999;"&gt;Shell.&lt;/SPAN&gt;SendKeys "0"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;&lt;SPAN style="color: #999999;"&gt;Shell.&lt;/SPAN&gt;SendKeys "{ENTER}" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the PGDN-Key (and PGUP and DOWN) does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Can someone help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2017 06:44:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-12T06:44:27Z</dc:date>
    <item>
      <title>Scroll ListBox by Macro with SendKeys PGDN</title>
      <link>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235934#M393152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question concerning the SendKeys command in QV macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to scroll a listbox by button. First we set the fokus on it and after this a macro is executed to scroll one page down:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;sub makro_sel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;set Shell = CreateObject("WScript.Sh&lt;/SPAN&gt;&lt;SPAN lang="EN-US"&gt;&lt;SPAN style="color: #999999;"&gt;ell")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;Shell.SendKeys "{PGDN}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;end sub&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the macro does't work, nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally the SendKeys command works, i tried this and it's fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;sub makro_sel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;set Shell = CreateObject("WScript.Sh&lt;SPAN lang="EN-US"&gt;ell")&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;&lt;SPAN style="color: #999999;"&gt;Shell.&lt;/SPAN&gt;SendKeys "0"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #999999;"&gt;&lt;SPAN style="color: #999999;"&gt;Shell.&lt;/SPAN&gt;SendKeys "{ENTER}" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the PGDN-Key (and PGUP and DOWN) does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Can someone help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 06:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235934#M393152</guid>
      <dc:creator />
      <dc:date>2017-01-12T06:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Scroll ListBox by Macro with SendKeys PGDN</title>
      <link>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235935#M393153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my experience is the use of sendkeys a bad way to execute any action and should be the last measure to achieve anything. In general it's not recommended to use macros within the qlik gui: &lt;A href="https://community.qlik.com/qlik-blogpost/3700"&gt;Macros are Bad&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the aim of your macro and which kind of usability should be served with them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 08:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235935#M393153</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-12T08:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scroll ListBox by Macro with SendKeys PGDN</title>
      <link>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235936#M393154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have a workaround, you are welcome...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The aim is to scroll a list box one page down by clicking a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 06:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235936#M393154</guid>
      <dc:creator />
      <dc:date>2017-01-13T06:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scroll ListBox by Macro with SendKeys PGDN</title>
      <link>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235937#M393155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to scroll down within the listbox - what is the aim behind this action?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 07:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235937#M393155</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-13T07:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scroll ListBox by Macro with SendKeys PGDN</title>
      <link>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235938#M393156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Hi Marcus,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;I&lt;/SPAN&gt;’ll answer for my &lt;/SPAN&gt;&lt;A href="http://dict.leo.org/german-english/colleague"&gt;&lt;SPAN style="color: windowtext; font-size: 12pt; text-decoration: underline; font-family: Calibri;"&gt;colleague&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The aim of this action is to jump to the next (page up) or last (page down) item in the listbox by clicking a button. In this case the object must be activated to be able to use page-up or page-down keys, otherwise, depending on activation or selection, you scroll in the wrong place. So that’s why we’ve bound it to a button, which has two actions in this case: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;1) activate the object (listbox)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;2) run the macro (sendkeys)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Unfortunately that doesn’t work und that is because this question appears.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Thank you in advance, if you have a better solution for us&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Viktoria&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 14:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235938#M393156</guid>
      <dc:creator />
      <dc:date>2017-01-13T14:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scroll ListBox by Macro with SendKeys PGDN</title>
      <link>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235939#M393157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried it myself (by adding the activate-statement within the sendkey-routine) and you are right a selection worked but not PGDN or DOWN. I think those keys are disabled or not implemented within the qlikview-vbs which is reduced in some way (there are some hints to them within the AutomationReference.pdf within your installation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But until now I couldn't understand why the user don't just used the arrows/pages-keys on the keyboard - what should be the advantages to put this within a button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235939#M393157</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-01-13T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scroll ListBox by Macro with SendKeys PGDN</title>
      <link>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235940#M393158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;We will place a good description on the Dashboard to avoid a miscklicking of the users. U&lt;SPAN style="font-family: Calibri;"&gt;nfortunately&lt;/SPAN&gt; there is no other way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;B&lt;/SPAN&gt;y the way – VBA-Code with the Arrow-Keys doesn’t work either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Best wishes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Viktoria&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 09:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scroll-ListBox-by-Macro-with-SendKeys-PGDN/m-p/1235940#M393158</guid>
      <dc:creator />
      <dc:date>2017-03-02T09:55:19Z</dc:date>
    </item>
  </channel>
</rss>

