UiPath related

Discuss Robotics Process Automation. RPA is a rapidly growing field with 6 figure incomes and an extreme workforce shortage. This sub forum will be used to discuss aspects of RPA as it relates to both scripting languages and RPA software such as UIPath or Automation Anywhere
burque505
Posts: 1732
Joined: 22 Jan 2017, 19:37

UiPath related

30 Mar 2019, 12:13

First, thanks to those who created this sub-forum.

I've been using AHK with UiPath since about October 2017. I had to take a break from UiPath for well over a year, but I have the latest community edition installed again, and have AutoHotkey running. I'll share some of my experiences here. They may well not be suited for those just starting with UiPath, and you're encouraged to take the free training they offer.

I'll include a few screenshots for contrast and comparison with other RPA.

UiPath has a concept of "Activities", which may be familiar to those using other MS Workflow software. AHK is accessed by an Activities package that (at least as of this writing) is "UiPath.Script.Activities." The AHK portion of it is based on AutoHotkey.Interop. It imposes a few restrictions you'll want to be aware of.

1) You can only access a script's functions. Labels don't appear to work, or at least I haven't been successful with them yet. The function's parameters are passed as a collection. You can establish its members in the Activity's "Properties" page.
l-props.PNG
l-props.PNG (9 KiB) Viewed 7855 times
2) You must first create variables in the workflow, and then use them later as Parameters. The use of variables and arguments is covered extensively in the UiPath training.
l-params.PNG
l-params.PNG (26.27 KiB) Viewed 7855 times
L-vars.PNG
L-vars.PNG (9.66 KiB) Viewed 7855 times
I will continue this thread in the next post, as I have to add more screenshots and post some example UiPath and AHK code.
burque505
Posts: 1732
Joined: 22 Jan 2017, 19:37

Re: UiPath related

30 Mar 2019, 12:29

Perhaps this should have gone in the first post in this topic. Here's an example of how a "flowchart" workflow looks in the UiPath designer.
Levenshtein.PNG
Levenshtein.PNG (20.44 KiB) Viewed 7849 times

As you can see, UiPath allows annotation of each element of the workflow. As tank points out elsewhere, it's critical to liberally comment and annotate your code. Even if you wrote it yourself, if you come back to it after six months you'll be REALLY glad you did. :D

For those who feel like diving in without RTFMs, I'm attaching a workflow that uses an AHK script ("LDistance.ahk") and a helper script ("Fuzzy Test Function LD.ahk") to compute Levenshtein distances for a simple collection. The UiPath workflow, which is a .xaml file, is "L5.xaml."
l-output.PNG
l-output.PNG (19.78 KiB) Viewed 7849 times

Managing project dependencies in UiPath is critical. It's a DotNet program, so this may be no surprise. From the UiPath start screen, there is a "Tools" section which allows mass dependency updating. It is helpful, but not necessarily intuitive.

For this project you will definitely need "UiPath.Script.Activities." The version installed on my machine is 1.0.6473.22268. There is a newer version at this URL, , which is in the "Gallery." THE GALLERY IS REPORTED TO BE GOING AWAY MARCH 31, 2019! It will be supplanted by UiPath Go! which doesn't appear to have ANY AutoHotkey content yet.
Attachments
for ahk rpa.zip
(3.4 KiB) Downloaded 264 times
User avatar
tank
Posts: 3122
Joined: 28 Sep 2013, 22:15
Location: CarrolltonTX
Contact:

Re: UiPath related

30 Mar 2019, 17:21

Of all the products out there I really like UIPath the best.
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
burque505
Posts: 1732
Joined: 22 Jan 2017, 19:37

Re: UiPath related

30 Mar 2019, 17:25

:+1:
So far, me too.
User avatar
Tigerlily
Posts: 377
Joined: 04 Oct 2018, 22:31

Re: UiPath related

04 Apr 2019, 02:06

burque505 wrote:
30 Mar 2019, 12:13
Hi burque505,

Thanks for sharing!

When you started out with UiPath (and AA), did you first start with their training/tutorial resources to guide you on what to do for your first few tests/projects?

Here is a picture of the main menu once you get into UiPath (for those who haven't seen it yet and are curious):

Image

Also @burque505 - I noiiced at the bottom left of that picture it says Expires in 12 Weeks - do you think that just means the installer expires in 12 weeks, or I can only tinker around with the community edition for 12 weeks?
-TL
burque505
Posts: 1732
Joined: 22 Jan 2017, 19:37

Re: UiPath related

04 Apr 2019, 09:44

Hi, I went through UiPath training online. There are lots of resources. The Community Edition expires every 12 weeks, and you have to renew (still free).
Regards,
burque505

Return to “RPA”

Who is online

Users browsing this forum: No registered users and 16 guests