本文由网友
蓝创精英团队投稿,欢迎转载、分享Original author: Lan Chuang elite team
Original link: https://www.example.com
profile
I have introduced RPA before, and it is a concept of robotic process automation.
基于 RPA,有很多的产品,其中 Power Automate Desktop (PAD)就是一个相对来讲,免费的,容易使用的一个 RPA,另外它的国际化做的也很不错,中文效果也是很棒。
其中,国内的 RPA 产品影刀也是类似的产品,会了它,用影刀也很顺手的说。
Of course, when using it in practice, there are also some inconveniences. You must first have a Microsoft account.
In addition, there are also restrictions on the operating system. The restrictions must be in WIN10 ++.
Therefore, it is estimated that the home versions of Win7 and Win10 will encounter some problems.
In addition, win 11 comes with it, which is an RPA tool for Windows by default (you can search for keywords)
installation and deployment
Its installation address is as follows
https://go.microsoft.com/fwlink/?linkid=2102613

Straight to the next step

I personally usually select all of them. When you need to install them, you can follow your own ideas.

After clicking Install, the options below appear, and select Yes directly

Then it started installing itself

By this time, the installation has been completed and the service can be enabled
login account

After successfully logging in, I saw the current interface. I created it before, so it looks like this.

A brief introduction to the PAD interface

- Create a new workflow task, just like the list below, if created well
- Under your personal account, a newly created desktop stream
- Stream that comes with the system official website
- start-up stream
- edit
- Other setting information
After editing 5 of them, the PAD process designer will appear. shown below

On the left side are the corresponding logical functional components, in the middle is the process logic, and on the right are the variable correlations.
Clear on the left

There are all functional applications, basically,

Others require the support of Microsoft's online cloud platform to achieve it. You need an account number, a secret key or something.
Generally speaking, it is for the world and for the Windwos desktop. However, there is still no specific generalization solution for many domestic practical scenarios, and it can only be realized through component expansion.
Official website example display
There are three official examples in total, which are Excel Automation, Web Automation, and Desktop Automation.



The main ones are these three, all of which are quite simple. I will randomly select one for a demonstration here, click on each of the things I want to learn, and basically I will know it.
Of course, if you can program, you will be proficient in it in half an hour.

I chose this, opened my notepad, and wrote something in it. Finally, close the notepad, then read out what is written in it, and prompt it.
I directly modified it to the above business requirements based on this example.
The requirements are as follows:
打开记事本,并向记事本里写东西,最后关闭记事本,然后,读出来里面写的啥,并提示出来。
Click on this edit and it will look like the following

Then, come out of this place

Click to understand, this is it

If you run it directly, you will actually report errors.

We need to update its UI path here to the current path

Double-click on the text field in this filled window

- The first is the address of the text box
- The second is the content entered into this text box and Notepad (can be changed to Chinese)
- The third is to save this functional logic
Second, you can also click on it yourself. Remember to open Notepad and click it.

The adding process is as follows. If you want to add any UI element, just Ctrl + left mouse button.

After modifying it, run it directly, and the effect is exactly as we thought.

We also add corresponding code logic based on the above requirements.
The results are as follows, and the results are still very gratifying.

A code example for this is as follows:
IF (File.IfFile.Exists File: $'''C:\\Users\\kess\\Desktop\\测试.txt''') THEN
File.Delete Files: $'''C:\\Users\\kess\\Desktop\\测试.txt'''
END
System.RunApplication.RunApplicationAndWaitToLoad ApplicationPath: $'''notepad.exe''' WindowStyle: System.ProcessWindowStyle.Maximized Timeout: 0 ProcessId=> AppProcessId WindowHandle=> WindowHandle
DateTime.GetCurrentDateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateAndTime CurrentDateTime=> CurrentDateTime
UIAutomation.PopulateTextField TextField: appmask['Window \'无标题 - 记事本\'']['Document \'文本编辑器\''] Text: $'''你好,
蓝创精英团队。
%CurrentDateTime%''' Mode: UIAutomation.PopulateTextMode.Replace ClickType: UIAutomation.PopulateMouseClickType.SingleClick
MouseAndKeyboard.SendKeys.FocusAndSendKeys TextToSend: $'''{Control}{Shift}({S})''' DelayBetweenKeystrokes: 10 SendTextAsHardwareKeys: False
UIAutomation.Click Element: appmask['Window \'*无标题 - 记事本\'']['Tree Item \'桌面\''] ClickType: UIAutomation.ClickType.LeftClick MousePositionRelativeToElement: UIAutomation.RectangleEdgePoint.MiddleCenter OffsetX: 0 OffsetY: 0
UIAutomation.PopulateTextField TextField: appmask['Window \'*无标题 - 记事本\'']['Edit \'文件名:\''] Text: $'''测试.txt''' Mode: UIAutomation.PopulateTextMode.Replace ClickType: UIAutomation.PopulateMouseClickType.SingleClick
UIAutomation.Click Element: appmask['Window \'*无标题 - 记事本\'']['Button \'保存(S)\''] ClickType: UIAutomation.ClickType.LeftClick MousePositionRelativeToElement: UIAutomation.RectangleEdgePoint.MiddleCenter OffsetX: 0 OffsetY: 0
WAIT (UIAutomation.WaitForWindow.ToClose Window: appmask['Window \'测试.txt - 记事本\'']['Window \'另存为\'']) FOR 3
ON ERROR
END
System.TerminateProcess.TerminateProcessById ProcessId: AppProcessId
File.ReadTextFromFile.ReadText File: $'''C:\\Users\\kess\\Desktop\\测试.txt''' Encoding: File.TextFileEncoding.UTF8 Content=> FileContents
Display.ShowMessageDialog.ShowMessage Title: $'''从文本中获取到的内容''' Message: FileContents Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
这个代码功能如何用呢,只要在 流程逻辑里面 Ctrl+Alt+A 全选,然后,复制,粘贴,就是这一串代码了。
Similarly, to create a new workflow, you can also directly click it in the process logic, and then paste it. It appears.

Currently, there is no good sharing plan.
This is still a cost-effective and relatively high method.
Summary after personal use
After I personally used it, I found that it has no advertisements or anything and is considered the software that comes with the system, so I am still very optimistic about it. However, many of its own functions are not in place, and many slightly complex scenarios still need to be customized. Customized components, then, does it support components? The good news is that it does, but the official did not explicitly say that it does.
But it's actually supportive, so, you know.
end
So far, through introduction, installation, introduction, and an official example modification, as well as the implementation of customized functions, I believe that you have an intuitive concept of RPA technology and products like PAD.
Improve productivity, start now, come on!!!
Your support and attention are all the driving force for me to move forward!, With your support, the Lanchuang elite team will do better.
In the next chapter, I'm going to write about the extension component method of PAD to make it more powerful.
reference
You can learn most of the functions through the official website.
https://docs.microsoft.com/zh-cn/power-automate/desktop-flows/actions-reference