<?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: Code Stage in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52877#M7682</link>
    <description>&lt;PRE class="tw-data-text tw-text-large tw-ta" data-placeholder="Tradução" id="tw-target-text" dir="ltr"&gt;&lt;SPAN class="Y2IQFc" lang="en"&gt;Hello friends!

I went through a very simple situation, in this case, I use one more method, I will inform you as steps if it is useful for you.

1) I used the QRES program and sent the command to change the password (I had a process that entered exactly and when going to the VM it found many problems, the best solution was simply the solution that had made the process).


Download QRES : Qres: &lt;A href="https://www.majorgeeks.com/mg/getmirror/qres,1.html" target="test_blank"&gt;https://www.majorgeeks.com/mg/getmirror/qres,1.html&lt;/A&gt;

2) I placed the executable inside the blueprism folder.

3) The command to change the screen you can send or send Keys Events, in this case it is this:
qres.exe /X Dimension /Y Dimension, example:
qres.exe /X 1920 /Y 1080

Then the change will be changed.

&lt;STRONG&gt;If you want to talk more about it, please contact me on whatsapp.

 +55 47 996866988&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Mar 2022 14:32:00 GMT</pubDate>
    <dc:creator>Jrwork</dc:creator>
    <dc:date>2022-03-01T14:32:00Z</dc:date>
    <item>
      <title>Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52872#M7677</link>
      <description>Hi everyone,&lt;BR /&gt;I'm trying to change my screen's resolution with code stage but it properly doesn't work but it works when I run it in visual studio,&lt;BR /&gt;I think the problem is to use class and methods in code stage but I do not know the proper use of this code,&lt;BR /&gt;If you have enough knowledge so can you show me the right usage of this c# code that I attached to the thread in Blue Prism code stage,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Hamit Dinç&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Nov 2021 08:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52872#M7677</guid>
      <dc:creator>HamitDinç1</dc:creator>
      <dc:date>2021-11-19T08:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52873#M7678</link>
      <description>Hi Hamit,&lt;BR /&gt;&lt;BR /&gt;While your C# code certainly looks impressive, I wonder if this challenge could not be solved in an easy fashion by creating a little sub-process and object that does the resolution change? On the plus side of this proposal is that any RPA colleague would be able to maintain the solution, rather than only the ones that do C# programming. Just a thought.&lt;BR /&gt;&lt;BR /&gt;As I'm not a C# programmer, I will not indulge in attempting to provide a Code stage based solution for that language. In my view, a Code stage can only be used for requirements that cannot be made by BP building blocks. If a more free use of Code stages would be allowed, we might as well throw out BP and start coding instead. Again, this is my view.&lt;BR /&gt;&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Nov 2021 12:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52873#M7678</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2021-11-19T12:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52874#M7679</link>
      <description>Honestly, for even slightly advanced code I'd recommend tossing it in a dll, referencing dll on intialise, and create a code stage that simply calls the appropriate method / function from the dll. If you insist on putting this entirely in code stages you'll probably want to put it on the global code on intialise and reference the method / function in the global code from an action's code stage. There are a few extras in your code that you won't need in BP as they are already there but at a layer higher. There are also things like console writelines in your code that won't do anything you can actually see in BP. Your code CAN be adapted for BP though, take a deep look at some of the included VBOs for BP. (Excel VBO global code has some hints for you I would say.)&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erin Connerley&lt;BR /&gt;Automation Consultant&lt;BR /&gt;Agilify Automation&lt;BR /&gt;America/Indiana/Indianapolis&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Nov 2021 14:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52874#M7679</guid>
      <dc:creator>ErinConnerley</dc:creator>
      <dc:date>2021-11-19T14:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52875#M7680</link>
      <description>Your code is just fine and I was able to create a business object and use it to change resolutions.&amp;nbsp; The tricky part about using the code stage is knowing where to place the code from the console to the object.&amp;nbsp; In your case what I did was to place all of the code just after the USING statements down to (but not including)&amp;nbsp; the Namespace declaration in the Global Code, which is located in the Initialize section. Then in the code options I added the following references--&lt;BR /&gt;&lt;BR /&gt;External References&lt;BR /&gt;System.Runtime.InteropServices.RuntimeInformation.dll&amp;nbsp;&lt;BR /&gt;Namespace imports&lt;BR /&gt;System.Runtime.InteropServices&lt;BR /&gt;&lt;BR /&gt;And changed the language dropdown to C#&lt;BR /&gt;&lt;BR /&gt;Finally for the action which I renamed the default Action1 to DisplayMode, I added a code object and placed the rest of the code starting with { Screen screen = ... down to the end making sure to preserve the curly brackets. The code should checkout just fine in both the code section and in the Global code section.&amp;nbsp; There are two warnings but these can be ignored. I commented out the console output but these could be changed to return a status and it would be easy to have the resolution modes passed in as a variable too.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Robert Borter&lt;BR /&gt;Systems Architect&lt;BR /&gt;Virginia Dept of Transportation&lt;BR /&gt;America/New_York&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Nov 2021 15:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52875#M7680</guid>
      <dc:creator>RobertBorter</dc:creator>
      <dc:date>2021-11-19T15:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52876#M7681</link>
      <description>&lt;P&gt;Hi Hamit,&lt;BR /&gt;&lt;BR /&gt;I have made few modifications to your code and am showing you all the steps you need to do in the attached document. I was able to successfully change the screen resolution at my machine. However, technically such a setting should not be done programmatically as it changes your registry settings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Also, as said by Erin, such an advanced code where namespaces and classes are being defined should be a part of DLL and that should instead be called from Blue Prism. However, please find the detailed steps and let me know if it helps.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Automation Consultant&lt;BR /&gt;Blueprism 6x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Nov 2021 15:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52876#M7681</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2021-11-20T15:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52877#M7682</link>
      <description>&lt;PRE class="tw-data-text tw-text-large tw-ta" data-placeholder="Tradução" id="tw-target-text" dir="ltr"&gt;&lt;SPAN class="Y2IQFc" lang="en"&gt;Hello friends!

I went through a very simple situation, in this case, I use one more method, I will inform you as steps if it is useful for you.

1) I used the QRES program and sent the command to change the password (I had a process that entered exactly and when going to the VM it found many problems, the best solution was simply the solution that had made the process).


Download QRES : Qres: &lt;A href="https://www.majorgeeks.com/mg/getmirror/qres,1.html" target="test_blank"&gt;https://www.majorgeeks.com/mg/getmirror/qres,1.html&lt;/A&gt;

2) I placed the executable inside the blueprism folder.

3) The command to change the screen you can send or send Keys Events, in this case it is this:
qres.exe /X Dimension /Y Dimension, example:
qres.exe /X 1920 /Y 1080

Then the change will be changed.

&lt;STRONG&gt;If you want to talk more about it, please contact me on whatsapp.

 +55 47 996866988&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Mar 2022 14:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage/m-p/52877#M7682</guid>
      <dc:creator>Jrwork</dc:creator>
      <dc:date>2022-03-01T14:32:00Z</dc:date>
    </item>
  </channel>
</rss>

