In this Power Automate Desktop PAD video I show a demo of and then give a walkthrough of my solution for playing and solving Minesweeper in Power Automate Desktop.
Its important to recognize that this solution uses almost entirely Image Recognition Image-based actions so traditional ways of interacting with a UI do not work.
For example modes such as Win32 UIA and AA do not work for this desktop app.
I got the original idea to automate Minesweeper a couple of years ago from Baris Karakas.
He automated Minesweeper in a web application using Blue Prism.
Check out his video here:
---------------------------------------------------------------------------------------------------------
Power Automate Desktop Version 2.16.00306.22020
Windows 10 Pro
SQL Server Management Studio
SQL Server 2019 Developer Edition
Minesweeper X
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
00:00 IntroDemo
06:37 Intro to playing Minesweeper
09:31 Capturing images
13:34 Efficient looping using SQL Server
20:18 Subflows: OpenMinesweeper and GetDimensions
23:51 Subflow: Setup for SQL Server table
25:56 If Image action and
32:46 Subflow: Get_XY_By_RowColumn
34:18 Subflow: Get_TileType_By_Image
36:10 Subflows: RightClickTile LeftClickTile CheckWinLose
42:10 Subflow: RefreshBoardReference
46:48 Subflow: GetNearbyLists
50:51 Subflow: LoopNumberTiles
52:26 Subflow: TakeAction which is inside LoopNumberTiles
58:38 Continue Subflow: LoopNumberTiles
59:38 Continue Main Flow to Display Message
1:01:35 Separate Desktop Flow: Move Window
1:03:46 Final DemoTest for 3 Difficulty Settings
1:18:57 End of Final DemoTest Expert Level reached lose condition
1:20:19 Conclusion
Источник: rutube.ru