Skip to content

Commit

Permalink
Merge pull request #162 from shelllet/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
shelllet authored Dec 14, 2024
2 parents cb2c912 + bfb2df9 commit 847713f
Show file tree
Hide file tree
Showing 101 changed files with 677 additions and 114 deletions.
Binary file added assets/inject/Dll1.dll
Binary file not shown.
Binary file added assets/inject/WindowsInject.exe
Binary file not shown.
13 changes: 12 additions & 1 deletion docx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# [0.40.1](https://github.com/shelllet/winui/compare/main...dev) (2024-11-06)
# [0.41.0](https://github.com/shelllet/winui/compare/main...dev) (2024-12-14)

### Changed:
1. 修复一些问题。
2. 添加内存读写动作:[ReadMemory](./actions/system/ReadMemory.md)[WriteMemory](./actions/system/WriteMemory.md)`DLL`注入:[AttachProcess](./actions/system/AttachProcess.md)

### Note

1. 使用管理员权限运行 *winui++*, 无法显示 *动作* 的拖动效果(已知问题)。
2. 64位下载(x64):https://bitbucket.org/winui-release/version/downloads/winui0.41.0-setup.x64.exe

## [0.40.1](https://github.com/shelllet/winui/compare/main...dev) (2024-11-06)

### Changed:
1. 修复动作参数数字无法输入问题。
Expand Down
31 changes: 24 additions & 7 deletions docx/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- [使用逻辑](./introduction/workflow/logic.md)
- [鼠标/键盘宏录制](./introduction/workflow/record)
- [变量](./introduction/workflow/variable.md)
- [资源](./introduction/workflow/resources.md)
- [流程操作技巧](./introduction/workflow/skill.md)
- [通配符匹配](./introduction/workflow/wildcard.md)
- [Glob模式匹配](./introduction/workflow/glob.md)
Expand All @@ -25,7 +26,7 @@
- [添加用户](./actions/system/UserAdd.md)
- [打开应用](./actions/system/OpenApplication.md)
- [打开文件](./actions/system/LaunchFile.md)
- [打开链接](./actions/system/OpenUri.md)
- [打开链接](./actions/system/OpenUrl.md)
- [退出系统](./actions/system/ExitWindows.md)
- [关闭句柄](./actions/system/CloseHandle.md)
- [检测进程](./actions/system/ExistProcess.md)
Expand All @@ -35,6 +36,9 @@
- [输出文本](./actions/system/OutputString.md)
- [创建对象](./actions/system/CreateObject.md)
- [调用方法](./actions/system/CallMethod.md)
- [读内存](./actions/system/ReadMemory.md)
- [写内存](./actions/system/WriteMemory.md)
- [附加进程](./actions/system/AttachProcess.md)
- 异步操作
- [定时器](./actions/async/WorkTimer.md)
- [定时任务](./actions/async/WorkTask.md)
Expand Down Expand Up @@ -73,6 +77,7 @@
- [监听鼠标](./actions/mouse/ListenMouse.md)
- [偏移移动](./actions/mouse/MoveOffset.md)
- [点击*网格](./actions/mouse/CellClick.md)
- [移动*网格](./actions/mouse/CellMove.md)
- [滚动鼠标](./actions/mouse/WheelMouse.md)
- 窗口
- [查找窗口](./actions/window/FindWindow.md)
Expand Down Expand Up @@ -247,8 +252,10 @@
- [添加元素](./actions/algorithm/PushBack.md)
- [删除元素](./actions/algorithm/PopBack.md)
- 类型
- [布尔](./actions/type/TypeBoolean.md)
- [数字](./actions/type/TypeNumber.md)
- [字符串](./actions/type/TypeString.md)
- [网址](./actions/type/TypeUri.md)
- [网址](./actions/type/TypeUrl.md)
- [坐标](./actions/type/TypePoint.md)
- [文件](./actions/type/TypeFile.md)
- [文件夹](./actions/type/TypeFolder.md)
Expand All @@ -260,6 +267,13 @@
- [颜色](./actions/type/TypeColor.md)
- [模型](./actions/type/TypeModel.md)
- [相机](./actions/type/TypeCamera.md)
- [字典](./actions/type/TypeDict.md)
- [元组](./actions/type/TypeTuple.md)
- [切片](./actions/type/TypeSlice.md)
- [列表](./actions/type/TypeList.md)
- [指针](./actions/type/TypePtr.md)
- [主机地址](./actions/type/TypeHostAddress.md)
- [字符串列表](./actions/type/TypeStrings.md)
- 内置类型
- [Boolean](./types/Boolean.md)
- [Number](./types/Number.md)
Expand All @@ -269,22 +283,25 @@
- [Rect](./types/Rect.md)
- [Scalar](./types/Scalar.md)
- [Color](./types/Color.md)
- [Bytes](./types/Bytes.md)
- [RotatedRect](./types/RotatedRect.md)
- [DetectionResult](./types/DetectionResult.md)
- [ClassificationResult](./types/ClassificationResult.md)
- [RecognitionResult](./types/RecognitionResult.md)
- [File](./types/File.md)
- [图像](./types/Image.md)
- [Image](./types/Image.md)
- [Size](./types/Size.md)
- [Url](./types/Url.md)
- [Wnd](./types/Wnd.md)
- [ModelSession](./types/ModelSession.md)
- [WebDriver](./types/WebDriver.md)
- [Timer](./types/Timer.md)
- [线程](./types/Thread.md)
- [键盘](./types/Keyboard.md)
- [主机地址](./types/HostAddress.md)
- [元组](./types/Tuple.md)
- [Thread](./types/Thread.md)
- [Keyboard](./types/Keyboard.md)
- [HostAddress](./types/HostAddress.md)
- [Tuple](./types/Tuple.md)
- [Slice](./types/Slice.md)
- [Ptr](./types/Ptr.md)
- 枚举类型
- [Colors](./enums/Colors.md)
- [Directions](./enums/Directions.md)
Expand Down
5 changes: 5 additions & 0 deletions docx/actions/algorithm/FilterVertex.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@
## 其它

示例:https://github.com/shelllet/WinUi/blob/main/algorithm/FilterVertex.simple


<iframe type="text/html" height="640px" src="https://www.youtube.com/embed/GmHh7nh0IIA" frameborder="0"></iframe>

<iframe src="//player.bilibili.com/player.html?bvid=BV1y8D5YjEeN&page=1&autoplay=0" height='640px' scrolling="no" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>
5 changes: 5 additions & 0 deletions docx/actions/algorithm/RandomNumber.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ import random
random.randint(1, 100)
````

<iframe type="text/html" height="640px" src="https://www.youtube.com/embed/NyjylgNUUfI" frameborder="0"></iframe>

<iframe src="//player.bilibili.com/player.html?bvid=BV13mD9YMEck&page=1&autoplay=0" height='640px' scrolling="no" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>

!> 该动作被执行之后就会生成确定的随机数。所有引用该动作的运行参数,都会使用相同的随机数。
3 changes: 3 additions & 0 deletions docx/actions/algorithm/RandomPoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@

示例:https://github.com/shelllet/WinUi/blob/main/algorithm/RandomPoint.simple

<iframe type="text/html" height="640px" src="https://www.youtube.com/embed/eQcM_83P-0E" frameborder="0"></iframe>

<iframe src="//player.bilibili.com/player.html?bvid=BV1HKm1YWEys&page=1&autoplay=0" height='640px' scrolling="no" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>

!> 该动作被执行之后就会生成确定的随机坐标。其他所有引用该动作的运行参数,都会使用相同的随机坐标。
10 changes: 8 additions & 2 deletions docx/actions/mouse/CellClick.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@
>
* 行数
> 风格行数
* 列数
> 网格列数
* 半径
> 以单元格中心为圆心,该参数为半径,动态计算最终的目标位置。该参数不要超过单元格长宽中的最小值。
* 停顿
> 移动至下个单元格的停顿时间。
* 点击键
> 鼠标键,参考:[MouseButtons](./enums/MouseButtons.md)
Expand All @@ -31,6 +37,6 @@

* 流程:https://github.com/shelllet/WinUi/blob/main/mouse/CellClick.simple

<!-- <iframe type="text/html" height="640px" src="https://www.youtube.com/embed/LBktoepioXw" frameborder="0"></iframe>
<iframe type="text/html" height="640px" src="https://www.youtube.com/embed/XZEoeA6loWg" frameborder="0"></iframe>

<iframe src="//player.bilibili.com/player.html?bvid=BV1NF411k7Un&page=1&autoplay=0" height='640px' scrolling="no" frameborder="no" framespacing="0" allowfullscreen="true"></iframe> -->
<iframe src="//player.bilibili.com/player.html?bvid=BV1WEDQYJE4q&page=1&autoplay=0" height='640px' scrolling="no" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>
36 changes: 36 additions & 0 deletions docx/actions/mouse/CellMove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 移动 * 网格
在桌面虚拟一个网格,依次移动鼠标至网格中的每个单元格,并调用自定义的子流程。需要配合 [移动鼠标](./actions/mouse/MovePointer.md)动作,移动鼠标至网格左上角第一个单格中心位置。

![CellMove](./images/12.png ':size=90%')

## 子流程
> 支持,当前鼠标位置传入子流程。

## 运行参数

* 单元格宽度
>
* 单元格高度
>
* 行数
> 风格行数
* 列数
> 网格列数
* 半径
> 以单元格中心为圆心,该参数为半径,动态计算最终的目标位置。该参数不要超过单元格长宽中的最小值。

## 输出

>
## 资源

* 流程:https://github.com/shelllet/WinUi/blob/main/mouse/CellMove.simple

<!-- <iframe type="text/html" height="640px" src="https://www.youtube.com/embed/LBktoepioXw" frameborder="0"></iframe>
<iframe src="//player.bilibili.com/player.html?bvid=BV1NF411k7Un&page=1&autoplay=0" height='640px' scrolling="no" frameborder="no" framespacing="0" allowfullscreen="true"></iframe> -->
Binary file added docx/actions/mouse/images/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions docx/actions/system/AttachProcess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 代码注入

创建一个进程,在进程启动的时候附加一个动态链接库。这个动作可以把动态库加载到进程的运行空间,也可以称作`DLL`注入。

![AttachProcess](./images/19.png ':size=90%')

## 权限
> 无要求
## 子流程

> 不支持
## 运行参数

* 进程
> 进程的路径,`Windows` 系统同名进程可以有多个,可以用进程全路径区分。
* 动态库
> 要附加的动态链接库。注意适配`32`位或者`64`位可执行程序。
## 输出

>

## 资源

* 示例流程:https://github.com/shelllet/WinUi/blob/main/system/AttachProcess.simple

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 打开链接
该动作可以启动默认的浏览器打开指定的网址

![OpenUri](./images/08.png ':size=90%')
![OpenUrl](./images/08.png ':size=90%')

## 权限
> 无要求
Expand Down
31 changes: 31 additions & 0 deletions docx/actions/system/ReadMemory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# 读取内存

读取指定进程地址范围内的数据。

![ReadMemory](./images/18.png ':size=90%')

## 权限
> 无要求
## 子流程

> 不支持
## 运行参数
* 进程
> 进程的路径,`Windows` 系统同名进程可以有多个,可以用进程全路径来区分。
* 地址
> 用户空间的内存地址。
* 长度
> 读取的数据长度。
## 输出

> 内存数据,参考:[字节序列](./types/Bytes.md)
## 资源

* 示例流程:https://github.com/shelllet/WinUi/blob/main/system/ReadMemory.simple

10 changes: 0 additions & 10 deletions docx/actions/system/Wait.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@

>
## 脚本调用

```python
import simple

w = simple.WaitRunner(3) # sleep 3s
# w.duration = 3
w.run()
```

## 资源

* 示例流程:https://github.com/shelllet/WinUi/blob/main/system/Wait.simple
Expand Down
33 changes: 33 additions & 0 deletions docx/actions/system/WriteMemory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 写内存

在进程指定的内存地址处写入数据。

![WriteMemory](./images/17.png ':size=90%')

## 权限
> 无要求
## 子流程

> 不支持
## 运行参数

* 进程
> 进程的路径,`Windows` 系统同名进程可以有多个,可以用进程全路径区分。

* 地址
> 用户空间的内存地址。
* 数据
> 写入的数据。如果写入字节序列,请使用:[Bytes](./types/Bytes.md),创建字节序列。
## 输出

>

## 资源

* 示例流程:https://github.com/shelllet/WinUi/blob/main/system/Wait.simple
Binary file added docx/actions/system/images/17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docx/actions/system/images/18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docx/actions/system/images/19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions docx/actions/type/TypeBoolean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 布尔
定义一个 *布尔* 类型。


![TypeBoolean](./images/01.png ':size=90%')

## 子流程
> 不支持

## 运行参数

*
> 布尔值。
## 输出

> 参考类型:[Boolean](./types/Boolean.md)

## 脚本调用

```python

b = True

```

## 示例
Loading

0 comments on commit 847713f

Please sign in to comment.