项目作者: teonsen

项目描述 :
FlaUI wrapper(UIA3 only), adding Java and OpenCV feature
高级语言: C#
项目地址: git://github.com/teonsen/Flax.git
创建时间: 2020-01-19T23:24:02Z
项目社区:https://github.com/teonsen/Flax

开源协议:MIT License

下载


Flax (This project is in preparation)

FlaUI wrapper(UIA3 only), adding Java and OpenCV feature.

Why the wrapper for FlaUI now?

Because it would be nice to code Windows and Mac in the same framework.
The “x” in Flax meant to be x(cross) platform.

  1. using Flax;
  2. var f = new WindowsAutomation();
  3. f.Process.Run("calc.exe");
  4. using (var w = f.GetWindow("Calculator"))
  5. {
  6. w.GetElementByName("1")?.Click();
  7. }

What is the OpenCV feature?

Only CV.Click() is available now.
You will need Flax.CV.exe in your app’s startup path.

  1. using Flax;
  2. var f = new WindowsAutomation();
  3. // Click the center point of matched area, if your template image matched in your screen.
  4. f.CV.Click($YourTemplateImagePath.bmp);