<?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: Wait loop until Task Manager application status &amp;lt;&amp;gt; Not Responding in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101810#M48684</link>
    <description>Thanks &lt;A class="user-content-mention" data-sign="@" data-contactkey="bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-tag-text="@John Carter" href="https://community.blueprism.com/network/profile?UserKey=bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-itemmentionkey="83f6d6a6-506d-495e-988f-3d98349ce82f"&gt;@John Carter&lt;/A&gt; &lt;A class="user-content-mention" data-sign="@" data-contactkey="acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-tag-text="@Walter Koller" href="https://community.blueprism.com/network/profile?UserKey=acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-itemmentionkey="7e9945c3-bc42-475b-89e2-23d78d4b7d95"&gt;@Walter Koller&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;EM&gt;Using the System.Diagnostics.Process.Responding property in a code stage to detect whether the user interface is responding.&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;This seems like a great idea. I'm quite experienced with VBA and okay at C++, however no experience in C# syntax or BP's likely varied C# syntax. &lt;BR /&gt;I've googled but am in over my head without taking a 5-10hr LinkedIn/Udemy C# course. Any suggestions on a starter code block, or template to adapt?&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;Using CMD linetasklist /FI "STATUS eq NOT RESPONDING" /FI "IMAGENAME eq chrome.exe"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;After some particular actions from BP I would like to poll the status every 5 seconds and loop until status &amp;lt;&amp;gt; "Not Responding". BP will handle kill process logic based off max loop. I think using CMD would be causing my system a hassle, and BP as I'd be shifting active windows; either using CMD itself, or Windows "Run" program.&lt;BR /&gt;&lt;BR /&gt;I think coding is the cleanest way, as the system is aware of the responsiveness with or without Task Manager open, meaning I should be able to poll and call the current status without opening any additional applications.&lt;BR /&gt;​​</description>
    <pubDate>Wed, 22 Sep 2021 00:06:08 GMT</pubDate>
    <dc:creator>PierceClements</dc:creator>
    <dc:date>2021-09-22T00:06:08Z</dc:date>
    <item>
      <title>Wait loop until Task Manager application status &lt;&gt; Not Responding</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101807#M48681</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I'm targeting an application (Objective ECM - desktop client)&amp;nbsp; which can adjust from responsive to "Not Responding" after certain values or actions are taken. This is due to server response times from action.&lt;BR /&gt;&lt;BR /&gt;Luckily Windows Task Manager reliably shows the application status as Not Responding. Unfortunately I do not know how to target this status easily and googling is not helping. &lt;STRONG&gt;I would like to build a code stage that looks at this task manager detail and reports the current status.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;This way I can build a wrapper for my team to target any application by data item input and use a ~120 count loop to wait up to two (2) minutes for the application to become responsive again.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your help is extremely appreciated. If the idea already exists in BP standard utility logic, I cannot see it.</description>
      <pubDate>Tue, 21 Sep 2021 00:56:50 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101807#M48681</guid>
      <dc:creator>PierceClements</dc:creator>
      <dc:date>2021-09-21T00:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wait loop until Task Manager application status &lt;&gt; Not Responding</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101808#M48682</link>
      <description>You could try using the System.Diagnostics.Process.Responding property in a code stage to detect whether the user interface is responding. &lt;BR /&gt;&lt;BR /&gt;Or, depending on the application and its behaviour, it might be possible to read or wait for some indicator from the screen using a VBO. But often this won't work because BP requires the app to be responsive in order to interact with it, so you're stuck in a catch 22.</description>
      <pubDate>Tue, 21 Sep 2021 13:18:59 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101808#M48682</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2021-09-21T13:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Wait loop until Task Manager application status &lt;&gt; Not Responding</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101809#M48683</link>
      <description>There are several approaches, depending which programming technique you prefer.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;One option is to use old style cmd line, which might be easier if you are not too deep into programming:&lt;BR /&gt;tasklist /FI "STATUS eq NOT RESPONDING" /FI "IMAGENAME eq chrome.exe"&lt;BR /&gt;You might have to add some steps to catch and parse the results and exclude filtered results from non-existing processes.&lt;BR /&gt;&lt;BR /&gt;I am sure there is something similar (very likely better) in PowerShell.</description>
      <pubDate>Tue, 21 Sep 2021 13:42:04 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101809#M48683</guid>
      <dc:creator>Walter.Koller</dc:creator>
      <dc:date>2021-09-21T13:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Wait loop until Task Manager application status &lt;&gt; Not Responding</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101810#M48684</link>
      <description>Thanks &lt;A class="user-content-mention" data-sign="@" data-contactkey="bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-tag-text="@John Carter" href="https://community.blueprism.com/network/profile?UserKey=bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-itemmentionkey="83f6d6a6-506d-495e-988f-3d98349ce82f"&gt;@John Carter&lt;/A&gt; &lt;A class="user-content-mention" data-sign="@" data-contactkey="acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-tag-text="@Walter Koller" href="https://community.blueprism.com/network/profile?UserKey=acb049eb-b80c-4d08-8fbf-ab00cf602ee3" data-itemmentionkey="7e9945c3-bc42-475b-89e2-23d78d4b7d95"&gt;@Walter Koller&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;EM&gt;Using the System.Diagnostics.Process.Responding property in a code stage to detect whether the user interface is responding.&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;/SPAN&gt;This seems like a great idea. I'm quite experienced with VBA and okay at C++, however no experience in C# syntax or BP's likely varied C# syntax. &lt;BR /&gt;I've googled but am in over my head without taking a 5-10hr LinkedIn/Udemy C# course. Any suggestions on a starter code block, or template to adapt?&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;Using CMD linetasklist /FI "STATUS eq NOT RESPONDING" /FI "IMAGENAME eq chrome.exe"&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;After some particular actions from BP I would like to poll the status every 5 seconds and loop until status &amp;lt;&amp;gt; "Not Responding". BP will handle kill process logic based off max loop. I think using CMD would be causing my system a hassle, and BP as I'd be shifting active windows; either using CMD itself, or Windows "Run" program.&lt;BR /&gt;&lt;BR /&gt;I think coding is the cleanest way, as the system is aware of the responsiveness with or without Task Manager open, meaning I should be able to poll and call the current status without opening any additional applications.&lt;BR /&gt;​​</description>
      <pubDate>Wed, 22 Sep 2021 00:06:08 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101810#M48684</guid>
      <dc:creator>PierceClements</dc:creator>
      <dc:date>2021-09-22T00:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wait loop until Task Manager application status &lt;&gt; Not Responding</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101811#M48685</link>
      <description>Hi Pierce - these aren't exactly what you're looking for but you'll get the idea. &lt;EM&gt;GetProcesses&lt;/EM&gt; or &lt;EM&gt;GetProcessesByName&lt;/EM&gt; gives you a list of process objects that you loop through and check the value of the objProcess.Responding property.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/320645/check-status-of-process" target="test_blank"&gt;https://stackoverflow.com/questions/320645/check-status-of-process&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.delftstack.com/howto/csharp/csharp-check-if-process-is-running/" target="test_blank"&gt;https://www.delftstack.com/howto/csharp/csharp-check-if-process-is-running/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'll also be able to try Walter's suggestion with a silent call using the Utility Environment VBO&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36833.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36841i33317C634398C2F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="36833.png" alt="36833.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 22 Sep 2021 08:10:21 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Wait-loop-until-Task-Manager-application-status-lt-gt-Not/m-p/101811#M48685</guid>
      <dc:creator>PSSupport</dc:creator>
      <dc:date>2021-09-22T08:10:21Z</dc:date>
    </item>
  </channel>
</rss>

