<?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: Global Send Key to Bring MS Edge Foreground in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46907#M2779</link>
    <description>&lt;P&gt;Try Minimise then Restore (or Maximise)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 06 Feb 2024 09:53:00 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2024-02-06T09:53:00Z</dc:date>
    <item>
      <title>Global Send Key to Bring MS Edge Foreground</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46906#M2778</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I run the bot in the control room. After launching Ms Edge, the window is hiding.&lt;/P&gt;
&lt;P&gt;I have tried many ways to bring the window foreground but have been UNsuccessful.&lt;/P&gt;
&lt;P&gt;I try Global Send Key ALT + TAB to switch between the control room window and Ms Edge.&lt;/P&gt;
&lt;P&gt;However, the Ms Edge is not always pop-up. Even, when the Ms Edge pops up, the window is closed immediately. I have used the retry stage to re-launch, but it's happened again: pop-up then closes immediately.&lt;/P&gt;
&lt;P&gt;Can someone please suggest ideas to bring Ms Edge foreground or what else I can do with Global Send Key ALT TAB?- Thank you!&lt;/P&gt;
&lt;P&gt;Here's the screenshot&lt;/P&gt;
&lt;P class="ck-editor-image-container"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="29935.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30065i3B9DB27B46B789AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="29935.png" alt="29935.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="ck-editor-image-container"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="29936.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30066iBAF2DF16A3F7E9CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="29936.png" alt="29936.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 03:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46906#M2778</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2024-02-06T03:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Global Send Key to Bring MS Edge Foreground</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46907#M2779</link>
      <description>&lt;P&gt;Try Minimise then Restore (or Maximise)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Feb 2024 09:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46907#M2779</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2024-02-06T09:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: Global Send Key to Bring MS Edge Foreground</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46908#M2780</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Try map the Window (Full) with Win32 and then in a Navigate Stage, call an "Activate Application" to that element.&lt;/P&gt;
&lt;P&gt;Let me know if this works.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gaston Salguero&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Feb 2024 13:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46908#M2780</guid>
      <dc:creator>GastonSalguero</dc:creator>
      <dc:date>2024-02-06T13:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: Global Send Key to Bring MS Edge Foreground</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46909#M2781</link>
      <description>&lt;P&gt;Hi, I have tried to minimize &amp;amp; maximise, to spy full window and have activated the application, etc... However, those steps are not working.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Feb 2024 18:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46909#M2781</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2024-02-06T18:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: Global Send Key to Bring MS Edge Foreground</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46910#M2782</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I have tried to minimize &amp;amp; maximise, to spy full window and have activated the application, etc... However, those steps are not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Feb 2024 18:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46910#M2782</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2024-02-06T18:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: Global Send Key to Bring MS Edge Foreground</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46911#M2783</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I have tried to minimize &amp;amp; maximise, to spy full window and have activated the application, etc... However, those steps are not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Feb 2024 18:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46911#M2783</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2024-02-06T18:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Global Send Key to Bring MS Edge Foreground</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46912#M2784</link>
      <description>&lt;P&gt;Hi Mia Mikela,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Try below code&amp;nbsp; in c#&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/11512373/findwindow-and-setforegroundwindow-alternatives" target="test_blank"&gt;https://stackoverflow.com/questions/11512373/findwindow-and-setforegroundwindow-alternatives&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="29929.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30060i1B2CFDA7CA4150D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="29929.png" alt="29929.png" /&gt;&lt;/span&gt;I would do some thing like this&amp;nbsp;&lt;BR /&gt;in the global code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="lang-cs s-code-block"&gt;&lt;CODE class="hljs language-csharp"&gt;[&lt;SPAN class="hljs-meta"&gt;DllImport(&lt;SPAN class="hljs-string"&gt;"user32.dll"&lt;/SPAN&gt;)&lt;/SPAN&gt;]
&lt;SPAN class="hljs-function"&gt;&lt;SPAN class="hljs-keyword"&gt;private static&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;extern&lt;/SPAN&gt; &lt;SPAN class="hljs-built_in"&gt;bool&lt;/SPAN&gt; &lt;SPAN class="hljs-title"&gt;SetForegroundWindow&lt;/SPAN&gt;(&lt;SPAN class="hljs-params"&gt;IntPtr hWnd&lt;/SPAN&gt;)&lt;/SPAN&gt;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;In the code stage:&lt;BR /&gt;Processname here you need to pass as input parameter as 'msedge'&lt;/P&gt;
&lt;PRE class="lang-cs s-code-block"&gt;&lt;CODE class="hljs language-csharp"&gt;Process[] p = Process.GetProcessesByName(processName);           &lt;BR /&gt;&lt;BR /&gt;foreach(Process p1 in p){&lt;BR /&gt;IntPtr wh = p1.MainWindowHandle;&lt;BR /&gt;SetForegroundWindow(wh);&lt;BR /&gt;}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class="hljs language-csharp"&gt;Namespace imports:&lt;BR /&gt;1) System.Runtime.InteropServices&lt;BR /&gt;2) System.Diagnostics&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="hljs language-csharp"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;PRE class="lang-cs s-code-block"&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;-----------------------&lt;BR /&gt;If I answered your query. Please mark it as the "Best Answer"&lt;BR /&gt;&lt;BR /&gt;Harish Mogulluri&lt;BR /&gt;Lead developer&lt;BR /&gt;America/New_York TX&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 21:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46912#M2784</guid>
      <dc:creator>harish.mogulluri</dc:creator>
      <dc:date>2024-02-06T21:42:00Z</dc:date>
    </item>
    <item>
      <title>RE: Global Send Key to Bring MS Edge Foreground</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46913#M2785</link>
      <description>&lt;P&gt;Hi Harish, thanks for your suggestions. However, I dont know C++ and I'm not allowed to change C++...&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mia Mikela&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Feb 2024 07:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Global-Send-Key-to-Bring-MS-Edge-Foreground/m-p/46913#M2785</guid>
      <dc:creator>Lily.L</dc:creator>
      <dc:date>2024-02-07T07:06:00Z</dc:date>
    </item>
  </channel>
</rss>

