Skip to content
Merged

0.45 #172

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion docx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
# [0.44.0](https://github.com/shelllet/winui/compare/main...dev) (2025-05-03)
# [0.45.0](https://github.com/shelllet/winui/compare/main...dev) (2025-06-13)

### Changed:
1. 添加最近打开窗口,方便打开流程。
2. 更新动作预览功能(现在会从流程入口开始执行到该动作执行完结束)。
3. 保存图像动作,支持把图像保存为*PDF*文件(文件名称以 `.pdf` 结尾)。
4. 截图动作中的*ROI* *中心位置* 更改为图像 *左上角*。
5. *窗口截图* 动作输出图像大小调整为窗口所在屏幕大小。

### Note

1. 使用管理员权限运行 *小友+*, 无法显示 *动作* 的拖动效果(已知问题)。
2. 此版本会清空缓存目录:`%LOCALAPPDATA%/Simple`。
3. 64位下载(x64):https://workdrive.zohopublic.com.cn/external/bd3d721a396c44df20e00de7ccf69d9957777ebe9591a871d9d777f9c7dfcedc/download

## [0.44.0](https://github.com/shelllet/winui/compare/main...dev) (2025-05-03)

### Changed:
1. [相机类型](./actions/type/TypeCamera.md) 动作支持工业 USB3/GIGE 接口相机,比如海康相机。
Expand Down
8 changes: 4 additions & 4 deletions docx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ _小友+_ 绝对不会嵌入任何广告、捆绑任何软件。也不会像国
![小友+](https://winui.net/introduction/images/01.png)

- 开发版文档:https://shelllet.github.io/winui/#/
- 示例流程:https://github.com/shelllet/winui
- 示例仓库:https://github.com/shelllet/winui

- 版本下载:[https://winui.net/](./CHANGELOG.md)
- 软件下载:[https://winui.net/](./CHANGELOG.md)

- YT: [https://www.youtube.com/playlist?list=UULFs1P87PQvBDJAuJfkKRLqMQ](https://www.youtube.com/playlist?list=UULFs1P87PQvBDJAuJfkKRLqMQ)
- B 站:[https://space.bilibili.com/652005178/channel/collectiondetail?sid=84951](https://space.bilibili.com/652005178/channel/collectiondetail?sid=84951)
- Youtube视频教学: [https://www.youtube.com/playlist?list=UULFs1P87PQvBDJAuJfkKRLqMQ](https://www.youtube.com/playlist?list=UULFs1P87PQvBDJAuJfkKRLqMQ)
- Bilibili 站视频教学:[https://space.bilibili.com/652005178/channel/collectiondetail?sid=84951](https://space.bilibili.com/652005178/channel/collectiondetail?sid=84951)

- 如果你有 *Discord*, 加入 [Discord](https://discord.gg/b4MeYbJrfk) 讨论。

Expand Down
18 changes: 9 additions & 9 deletions docx/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
- [写内存](./actions/system/WriteMemory.md)
- [附加进程](./actions/system/AttachProcess.md)
- 异步操作
- [定时器](./actions/async/WorkTimer.md)
- [定时任务](./actions/async/WorkTask.md)
- [工作线程](./actions/async/WorkThread.md)
- [异步结束](./actions/async/WorkExit.md)
- [异步启动](./actions/async/WorkBegin.md)
- [状态切换](./actions/async/WorkReset.md)
- [等待事件](./actions/async/WhenEvent.md)
- [异步等待](./actions/async/WorkWait.md)
- [定时器](./actions/asynchronous/WorkTimer.md)
- [定时任务](./actions/asynchronous/WorkTask.md)
- [工作线程](./actions/asynchronous/WorkThread.md)
- [异步结束](./actions/asynchronous/WorkExit.md)
- [异步启动](./actions/asynchronous/WorkBegin.md)
- [状态切换](./actions/asynchronous/WorkReset.md)
- [等待事件](./actions/asynchronous/WhenEvent.md)
- [异步等待](./actions/asynchronous/WorkWait.md)
- 文件系统
- [读取文件](./actions/filesystem/FileRead.md)
- [文件写入](./actions/filesystem/FileWrite.md)
Expand Down Expand Up @@ -149,7 +149,7 @@
- [文字识别(Tesseract)](./actions/ai/TesseractOCR.md)
- 媒体
- [窗口截图](./actions/media/CaptureWindow.md)
- [全屏截图](./actions/media/CaptureFullScreen.md)
- [全屏截图](./actions/media/CaptureScreen.md)
- [活动窗口截图](./actions/media/CaptureActiveWindow.md)
- [声音播放](./actions/media/MediaPlay.md)
- [键盘/鼠标宏重放](./actions/media/PlayRecord.md)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 12 additions & 1 deletion docx/actions/filesystem/DirectoryIterator.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
> 要遍历的文件夹
* [recursive](./types/Boolean.md)
> 是否递归遍历, 默认 `False`。

* 扩展名 [`extensions`](./types/String.md)
> 根据文件扩展名过滤,多个扩展名使用 `,` 、`;` 或者 `|` 分隔。

* [async](./types/Boolean.md)
> 是否异步处理子流程,也就是开启线程处理子流程。默认 `False`,不支持在脚本中使用。

Expand Down Expand Up @@ -42,4 +46,11 @@ r.run(cbk)

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

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



## 版本变化

* 0.45
> 增加 *扩展名过滤* 参数。
10 changes: 8 additions & 2 deletions docx/actions/media/CaptureActiveWindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

## 运行参数

* 中心
> 要选择的 *ROI* 区域中心位置,*ROI* 区域之外,图像将置为黑色,该参数不影响输出图像尺寸。
* 坐标
> 要选择的 *ROI* 区域左上角位置,默认值 `(0, 0)`。*ROI* 区域之外,图像将置为黑色,该参数不影响输出图像尺寸。
* 尺寸
> 要选择的 *ROI* 区域的长宽。*ROI* 区域之外,图像将置为黑色,该参数不影响输出图像尺寸。
## 输出
Expand All @@ -25,3 +25,9 @@
<!-- <iframe type="text/html" height="640px" src="https://www.youtube.com/embed/09cpr-z22Uc" frameborder="0"></iframe>

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


## Changed

* 0.45
> 运行参数*中心坐标* 改为 *左上角坐标*。
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# 全屏截图
全屏截图,对于多个显示器,只能截取主显示器屏幕图像
全屏截图,支持多个显示器屏幕

![CaptureFullScreen](./images/02.png ':size=90%')
![CaptureScreen](./images/02.png ':size=90%')

## 子流程
> 不支持


## 运行参数
* 显示器
> 截取屏幕。

* 坐标
> 要选择的 *ROI* 区域左上角位置,默认值 `(0, 0)`。*ROI* 区域之外,图像将置为黑色,该参数不影响输出图像尺寸。

* 中心
> 要选择的 *ROI* 区域中心位置,*ROI* 区域之外,图像将置为黑色。该参数不影响输出图像尺寸。
* 尺寸
> 要选择的 *ROI* 区域的长宽。*ROI* 区域之外,图像将置为黑色。该参数不影响输出图像尺寸。


## 输出

> 图像,参考:[`Image`](./types/Image.md),图像尺寸为整个窗口尺寸
> 图像,参考:[`Image`](./types/Image.md),图像尺寸为整个屏幕尺寸


## 脚本调用
Expand All @@ -29,9 +32,16 @@ import simple;

## 资源

示例:https://github.com/shelllet/WinUi/blob/main/media/CaptureFullScreen.simple
示例:https://github.com/shelllet/WinUi/blob/main/media/CaptureScreen.simple


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

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


## Changed

* 0.45
> 运行参数*中心坐标* 改为 *左上角坐标*。
> 添加屏幕选择参数。
13 changes: 9 additions & 4 deletions docx/actions/media/CaptureWindow.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 窗口截图
根据指定的窗口截图,此图像包含标题栏
根据指定的窗口截图,包含标题栏

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

Expand All @@ -11,13 +11,13 @@
* 窗口
> 需要截图的窗口。如果为 *空* ,选择当前激活的前置窗口。

* 中心
> 要选择的 *ROI* 区域中心位置,*ROI* 区域之外,图像将置为黑色,该参数不影响输出图像尺寸。
* 坐标
> 要选择的 *ROI* 区域左上角位置,默认值 `(0, 0)`。*ROI* 区域之外,图像将置为黑色,该参数不影响输出图像尺寸。
* 尺寸
> 要选择的 *ROI* 区域的长宽。*ROI* 区域之外,图像将置为黑色,该参数不影响输出图像尺寸。
## 输出

> 图像,参考:[`Image`](./types/Image.md),图像尺寸为整个窗口尺寸
> 图像,参考:[`Image`](./types/Image.md),图像尺寸为窗口所在屏幕的尺寸


## 资源
Expand All @@ -27,3 +27,8 @@
<iframe type="text/html" height="640px" src="https://www.youtube.com/embed/ETOELc3iYhs" frameborder="0"></iframe>

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

## Changed

* 0.45
> 运行参数*中心坐标* 改为 *左上角坐标*。
9 changes: 5 additions & 4 deletions docx/introduction/workflow/property.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

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

* 名称

项目名称

* 运行时隐藏窗口

在开始运行流程的时候隐藏 *小友+* 的主窗口,这样可以不影响鼠标或者是截图等相关的操作。

* 输出更多日志

建议在设计流程的时候,勾选此选项,即可在输出窗口看到更多的调试信息;在运行阶段,取消勾选,可加快执行速度和减少输出的信息占用过多的内存。

* 主流程

项目的入口流程。一个项目是可以包含多个流程,这里可以选择项目一开始所执行的流程。
Expand All @@ -23,4 +23,5 @@
# 动作 * 通用属性

* 描述:动作的标题,会显示在动作节点上面。

* 名称:动作的唯一名称,可用作 *变量*, 必须符合 *Python* 变量的定义语法