<?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: AutoHotKey Script for auto-refresh in Power Bi Desktop in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/AutoHotKey-Script-for-auto-refresh-in-Power-Bi-Desktop/m-p/1380647#M25792</link>
    <description>&lt;P&gt;Oh that is pretty neat! Thank you for sharing! The autohotkeys script works too, but it needs to be run as administrator. I found that out a little after posting this. But thank you for your reply!&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 16:12:23 GMT</pubDate>
    <dc:creator>phodges</dc:creator>
    <dc:date>2020-09-18T16:12:23Z</dc:date>
    <item>
      <title>AutoHotKey Script for auto-refresh in Power Bi Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/AutoHotKey-Script-for-auto-refresh-in-Power-Bi-Desktop/m-p/703693#M19547</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a script in AutoHotKey for Power Bi Desktop to auto-refresh by hiting Alt - H - R. This is a combination that does work in Power Bi Desktop when done manually. The AutoHotKey code I wrote is below. This code works within Microsoft Word (r activates the replace command) and Excel (not r, but tried it with x, which activates the Cut command), but will only open the Power Bi window and will not activate the refresh button. Does anyone have an idea as to why it will not work in Power Bi Desktop?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--------------------------------------------Code----------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.&lt;BR /&gt;; #Warn ; Enable warnings to assist with detecting common errors.&lt;BR /&gt;SendMode Input ; Recommended for new scripts due to its superior speed and reliability.&lt;BR /&gt;SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Persistent&lt;BR /&gt;SetTimer, PressTheKey, 30000&amp;nbsp; &amp;nbsp; &amp;nbsp;;Refresh every 30 secs (Power Bi Desktop cannot do this and this is important for&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;what I am trying to do)&lt;BR /&gt;Return&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PressTheKey:&lt;BR /&gt;if WinExist("Test File")&lt;BR /&gt;{&lt;BR /&gt;WinActivate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;Activate the window (if it is not the current window it will reopen it and allow you to work in it)&lt;BR /&gt;WinMaximize&amp;nbsp; &amp;nbsp; &amp;nbsp;;Maximize window&lt;BR /&gt;Send !hr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;;Alt h r keys&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Esc::ExitApp&amp;nbsp; &amp;nbsp; &amp;nbsp; ;Press "Esc" key to end code&lt;BR /&gt;return&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. If anyone knows a shortcut key for refresh in Power Bi Desktop that would be helpful too.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 19:22:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/AutoHotKey-Script-for-auto-refresh-in-Power-Bi-Desktop/m-p/703693#M19547</guid>
      <dc:creator>phodges</dc:creator>
      <dc:date>2019-05-30T19:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: AutoHotKey Script for auto-refresh in Power Bi Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/AutoHotKey-Script-for-auto-refresh-in-Power-Bi-Desktop/m-p/1288475#M25188</link>
      <description>&lt;P&gt;If you're up for a bit of python, there's a scipt here that is quite a useful demo of using pywinauto to do just this sort of thing:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dubravcik/pbixrefresher-python" target="_blank"&gt;https://github.com/dubravcik/pbixrefresher-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 18:48:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/AutoHotKey-Script-for-auto-refresh-in-Power-Bi-Desktop/m-p/1288475#M25188</guid>
      <dc:creator>andyclap</dc:creator>
      <dc:date>2020-08-11T18:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: AutoHotKey Script for auto-refresh in Power Bi Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/AutoHotKey-Script-for-auto-refresh-in-Power-Bi-Desktop/m-p/1380647#M25792</link>
      <description>&lt;P&gt;Oh that is pretty neat! Thank you for sharing! The autohotkeys script works too, but it needs to be run as administrator. I found that out a little after posting this. But thank you for your reply!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 16:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/AutoHotKey-Script-for-auto-refresh-in-Power-Bi-Desktop/m-p/1380647#M25792</guid>
      <dc:creator>phodges</dc:creator>
      <dc:date>2020-09-18T16:12:23Z</dc:date>
    </item>
  </channel>
</rss>

