diff --git a/README.md b/README.md index dd5b4b3..2c243f1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# 快捷命令 V2.3.2 +# 快捷命令 V2.3.4 -[![GitHub stars](https://img.shields.io/github/stars/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/stargazers) [![GitHub forks](https://img.shields.io/github/forks/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/network/members) [![GitHub license](https://img.shields.io/github/license/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/LICENSE) [![version]( https://img.shields.io/badge/dynamic/json?color=f58142&label=version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffofolee%2FuTools-QuickerCommand%2Fmaster%2Fsrc%2Fplugin.json&style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) [![猿料](https://img.shields.io/badge/%E7%8C%BF%E6%96%99-%2Fd%2F424-red?style=flat-square)](https://yuanliao.info/d/424) [![评论](https://img.shields.io/badge/dynamic/json?color=%2350e3c2&label=%E8%AF%84%E8%AE%BA&query=%24.data.attributes.commentCount&url=https%3A%2F%2Fyuanliao.info%2Fapi%2Fdiscussions%2F424&style=flat-square)](https://yuanliao.info/d/424) [![下载](https://img.shields.io/badge/dynamic/json?label=%E4%B8%8B%E8%BD%BD&query=quickcommand&url=https%3A%2F%2Ffofolee.cn1.utools.club%2Fapi%2Fqcdownloads&style=flat-square)](https://yuanliao.info/d/424) +[![GitHub stars](https://img.shields.io/github/stars/fofolee/uTools-quickcommand?style=flat-square)](https://github.com/fofolee/uTools-quickcommand/stargazers) [![GitHub forks](https://img.shields.io/github/forks/fofolee/uTools-quickcommand?style=flat-square)](https://github.com/fofolee/uTools-quickcommand/network/members) [![GitHub license](https://img.shields.io/github/license/fofolee/uTools-quickcommand?style=flat-square)](https://github.com/fofolee/uTools-quickcommand/blob/master/LICENSE) [![version]( https://img.shields.io/badge/dynamic/json?color=f58142&label=version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffofolee%2FuTools-quickcommand%2Fmaster%2Fsrc%2Fplugin.json&style=flat-square)](https://github.com/fofolee/uTools-quickcommand/blob/master/src/helps/CHANGELOG.md) [![猿料](https://img.shields.io/badge/%E7%8C%BF%E6%96%99-%2Fd%2F424-red?style=flat-square)](https://yuanliao.info/d/424) [![评论](https://img.shields.io/badge/dynamic/json?color=%2350e3c2&label=%E8%AF%84%E8%AE%BA&query=%24.data.attributes.commentCount&url=https%3A%2F%2Fyuanliao.info%2Fapi%2Fdiscussions%2F424&style=flat-square)](https://yuanliao.info/d/424) [![下载](https://img.shields.io/badge/dynamic/json?label=%E4%B8%8B%E8%BD%BD&query=quickcommand&url=https%3A%2F%2Ffofolee.cn1.utools.club%2Fapi%2Fqcdownloads&style=flat-square)](https://yuanliao.info/d/424) ## 简介 @@ -20,9 +20,11 @@ - 简单的代码编辑及运行功能 +[目前实现的功能列表 >>](https://yuanliao.info/d/2962) + ## 更新日志 -[CHANGELOG](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) +[CHANGELOG](https://github.com/fofolee/uTools-quickcommand/blob/master/src/helps/CHANGELOG.md) ## 功能 @@ -161,7 +163,7 @@ 插件中心进行安装 -[项目地址](https://github.com/fofolee/uTools-QuickerCommand) +[项目地址](https://github.com/fofolee/uTools-quickcommand) [插件发布页](https://yuanliao.info/d/424) diff --git a/src/README.md b/src/README.md index dd5b4b3..2c243f1 100644 --- a/src/README.md +++ b/src/README.md @@ -1,8 +1,8 @@ -# 快捷命令 V2.3.2 +# 快捷命令 V2.3.4 -[![GitHub stars](https://img.shields.io/github/stars/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/stargazers) [![GitHub forks](https://img.shields.io/github/forks/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/network/members) [![GitHub license](https://img.shields.io/github/license/fofolee/uTools-QuickerCommand?style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/LICENSE) [![version]( https://img.shields.io/badge/dynamic/json?color=f58142&label=version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffofolee%2FuTools-QuickerCommand%2Fmaster%2Fsrc%2Fplugin.json&style=flat-square)](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) [![猿料](https://img.shields.io/badge/%E7%8C%BF%E6%96%99-%2Fd%2F424-red?style=flat-square)](https://yuanliao.info/d/424) [![评论](https://img.shields.io/badge/dynamic/json?color=%2350e3c2&label=%E8%AF%84%E8%AE%BA&query=%24.data.attributes.commentCount&url=https%3A%2F%2Fyuanliao.info%2Fapi%2Fdiscussions%2F424&style=flat-square)](https://yuanliao.info/d/424) [![下载](https://img.shields.io/badge/dynamic/json?label=%E4%B8%8B%E8%BD%BD&query=quickcommand&url=https%3A%2F%2Ffofolee.cn1.utools.club%2Fapi%2Fqcdownloads&style=flat-square)](https://yuanliao.info/d/424) +[![GitHub stars](https://img.shields.io/github/stars/fofolee/uTools-quickcommand?style=flat-square)](https://github.com/fofolee/uTools-quickcommand/stargazers) [![GitHub forks](https://img.shields.io/github/forks/fofolee/uTools-quickcommand?style=flat-square)](https://github.com/fofolee/uTools-quickcommand/network/members) [![GitHub license](https://img.shields.io/github/license/fofolee/uTools-quickcommand?style=flat-square)](https://github.com/fofolee/uTools-quickcommand/blob/master/LICENSE) [![version]( https://img.shields.io/badge/dynamic/json?color=f58142&label=version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2Ffofolee%2FuTools-quickcommand%2Fmaster%2Fsrc%2Fplugin.json&style=flat-square)](https://github.com/fofolee/uTools-quickcommand/blob/master/src/helps/CHANGELOG.md) [![猿料](https://img.shields.io/badge/%E7%8C%BF%E6%96%99-%2Fd%2F424-red?style=flat-square)](https://yuanliao.info/d/424) [![评论](https://img.shields.io/badge/dynamic/json?color=%2350e3c2&label=%E8%AF%84%E8%AE%BA&query=%24.data.attributes.commentCount&url=https%3A%2F%2Fyuanliao.info%2Fapi%2Fdiscussions%2F424&style=flat-square)](https://yuanliao.info/d/424) [![下载](https://img.shields.io/badge/dynamic/json?label=%E4%B8%8B%E8%BD%BD&query=quickcommand&url=https%3A%2F%2Ffofolee.cn1.utools.club%2Fapi%2Fqcdownloads&style=flat-square)](https://yuanliao.info/d/424) ## 简介 @@ -20,9 +20,11 @@ - 简单的代码编辑及运行功能 +[目前实现的功能列表 >>](https://yuanliao.info/d/2962) + ## 更新日志 -[CHANGELOG](https://github.com/fofolee/uTools-QuickerCommand/blob/master/src/helps/CHANGELOG.md) +[CHANGELOG](https://github.com/fofolee/uTools-quickcommand/blob/master/src/helps/CHANGELOG.md) ## 功能 @@ -161,7 +163,7 @@ 插件中心进行安装 -[项目地址](https://github.com/fofolee/uTools-QuickerCommand) +[项目地址](https://github.com/fofolee/uTools-quickcommand) [插件发布页](https://yuanliao.info/d/424) diff --git a/src/helps/CHANGELOG.html b/src/helps/CHANGELOG.html index 2876e71..64f6b4c 100644 --- a/src/helps/CHANGELOG.html +++ b/src/helps/CHANGELOG.html @@ -2,15 +2,15 @@ -CHANGELOG - -

V2.3.2

v2.3.1

v2.3.0

v2.2.0

\ No newline at end of file diff --git a/src/helps/CHANGELOG.md b/src/helps/CHANGELOG.md index bc51b65..48feb21 100644 --- a/src/helps/CHANGELOG.md +++ b/src/helps/CHANGELOG.md @@ -1,3 +1,12 @@ +## V2.3.4 + - 有子输入框的情况下,如果5s内复制了内容再呼出,会自动执行复制的内容 + - 修复暗黑模式下的一些配色 bug + - 完善脚本的报错信息,更容易定位到错误点 + - 修复了如果通过 newcommand 创建命令,会出现页面无法点击的 bug + +## V2.3.3 + - 修复新安装插件的用户,如不填写标签会无法保存的 bug + ## V2.3.2 - 修复 icon8s 图标无法搜索的 bug @@ -222,7 +231,7 @@ - 该模式同样适用于本机没有任何语言环境的或环境变量失效的用户,不需要安装nodejs即可执行js代码 - 虽然没有提供`特殊变量`的下拉框,但实际是支持的 - 脚本报错时提供跳转至临时脚本目录的选项 -- 添加一个`下载命令`的按钮,可以跳转到[样例命令库]( https://github.com/fofolee/uTools-QuickerCommand/tree/master/CommandCollections ),如果你不知道怎么去编写一个目录,可以尝试下载导入进行参考 +- 添加一个`下载命令`的按钮,可以跳转到[样例命令库]( https://github.com/fofolee/uTools-quickcommand/tree/master/CommandCollections ),如果你不知道怎么去编写一个目录,可以尝试下载导入进行参考 - (貌似)修复了执行完命令后,再次呼出uTools会短暂显示命令关键词的bug,该bug可能是由先隐藏uTools再退出插件所引起 ![JU0UAS.png](https://s1.ax1x.com/2020/04/22/JU0UAS.png) @@ -247,14 +256,14 @@ - 新增一个特殊变量`当前窗口信息`,输出`json`格式的窗口相关信息,将原先的特殊变量`用户名`改为`本机唯一ID`,方便针对不同电脑编写脚本,两个变量均通过官方API获取 - 弃用原先模拟按键的方式,获取资源管理器路径、选中文件、浏览器地址均借助官方API - 新增`发送系统通知`的输出模式 By [imxiny](https://github.com/imxiny) -- 新增`在终端显示`的输出模式, 用以解决脚本需要显示动态输出的问题, 如 curl 命令 [issue](https://github.com/fofolee/uTools-QuickerCommand/issues/3) -- 上传一些命令至仓库的`CommandCollections`文件夹,用以作为编写命令的样例,同时大家可以提交PR丰富这个命令库 [CommandCollections](https://github.com/fofolee/uTools-QuickerCommand/tree/master/CommandCollections) +- 新增`在终端显示`的输出模式, 用以解决脚本需要显示动态输出的问题, 如 curl 命令 [issue](https://github.com/fofolee/uTools-quickcommand/issues/3) +- 上传一些命令至仓库的`CommandCollections`文件夹,用以作为编写命令的样例,同时大家可以提交PR丰富这个命令库 [CommandCollections](https://github.com/fofolee/uTools-quickcommand/tree/master/CommandCollections) ### BUG 修复 - 修复 php 无法输入 -

quickcommand❖ UI 交互showButtonBox(buttons, title)showInputBox(placeHolders, title)showSelectList(selects, options)updateSelectList(opt, id)showTextAera(placeholder, value)showMessageBox(message, icon, time)showConfirmBox(title)❖ 延时函数sleep(ms)setTimeout(callback, ms)❖ 前端封装htmlParse(html)downloadFile(url, file | options)uploadFile(url, file | options, name, formData)❖ nodejs 封装loadRemoteScript(url)kill(pid, signal)runVbs(script)❖ utools 封装enterDatasimulateCopy()simulatePaste()其他nodejs❖ 文档❖ 上下文electron❖ 文档❖ 上下文utools❖ 文档❖ 上下文

quickcommand

❖ UI 交互

showButtonBox(buttons, title)

显示一个按钮对话框,用来接收用户的输入

示例

实例

showInputBox(placeHolders, title)

显示一个输入框界面,用来接用户的输入

示例

实例

showSelectList(selects, options)

显示一个支持搜索的且可以动态更新的选项列表

当指定optionTypejson时,类似于插件开发的列表模式titledescriptionicon分别表示标题、描述和图标,其中title为必备属性

示例

实例

updateSelectList(opt, id)

动态更新当前的选项列表的选项。

示例

showTextAera(placeholder, value)

显示一个文本框界面,用来接用户的输入

示例

实例

showMessageBox(message, icon, time)

显示一个自动消失的提示框

示例

showConfirmBox(title)

显示一个确认框

❖ 延时函数

sleep(ms)

由于setTimeout在electron中存在限制,在隐藏到后台时不会被执行,在vm2中也有bug,所以在quickcommand的环境下被禁用了,但对于模拟按键之类的场景,延迟是不可缺少的,所以提供了sleep函数来解决这个问题

示例

setTimeout(callback, ms)

用法和setTimeout一样,但实现原理不一样,sleep的异步版本

示例

❖ 前端封装

htmlParse(html)

将给定的html字符串解析为DOM对象,用于快速编写爬虫脚本

示例

downloadFile(url, file | options)

下载文件,可选直接下载到指定路径,或者弹出对话框选择下载路径

uploadFile(url, file | options, name, formData)

上传文件,可以直接上传指定文件,或者弹出对话框选择要上传的文件,可以自定义表单数据

❖ nodejs 封装

loadRemoteScript(url)

加载一个远程脚本文件

kill(pid, signal)

signal 发送给 pid 标识的进程 , 默认为关闭进程,同process.kill

示例

runVbs(script)

windows 下运行 VBS 脚本

示例

❖ utools 封装

enterData

示例

simulateCopy()

模拟复制操作

simulatePaste()

模拟粘贴操作

其他

nodejs

文档

❖ 上下文

electron

文档

❖ 上下文

utools

文档

❖ 上下文

+

quickcommand❖ UI 交互showButtonBox(buttons, title)showInputBox(placeHolders, title)showSelectList(selects, options)updateSelectList(opt, id)showTextAera(placeholder, value)showMessageBox(message, icon, time)showConfirmBox(title)❖ 延时函数sleep(ms)setTimeout(callback, ms)❖ 前端封装htmlParse(html)downloadFile(url, file | options)uploadFile(url, file | options, name, formData)❖ nodejs 封装loadRemoteScript(url)kill(pid, signal)runVbs(script)❖ utools 封装enterDatasimulateCopy()simulatePaste()其他nodejs❖ 文档❖ 上下文electron❖ 文档❖ 上下文utools❖ 文档❖ 上下文

quickcommand

❖ UI 交互

showButtonBox(buttons, title)

显示一个按钮对话框,用来接收用户的输入

示例

实例

showInputBox(placeHolders, title)

显示一个输入框界面,用来接用户的输入

示例

实例

showSelectList(selects, options)

显示一个支持搜索的且可以动态更新的选项列表

当指定optionTypejson时,类似于插件开发的列表模式titledescriptionicon分别表示标题、描述和图标,其中title为必备属性

示例

实例

updateSelectList(opt, id)

动态更新当前的选项列表的选项。

示例

showTextAera(placeholder, value)

显示一个文本框界面,用来接用户的输入

示例

实例

showMessageBox(message, icon, time)

显示一个自动消失的提示框

示例

showConfirmBox(title)

显示一个确认框

❖ 延时函数

sleep(ms)

由于setTimeout在electron中存在限制,在隐藏到后台时不会被执行,在vm2中也有bug,所以在quickcommand的环境下被禁用了,但对于模拟按键之类的场景,延迟是不可缺少的,所以提供了sleep函数来解决这个问题

示例

setTimeout(callback, ms)

用法和setTimeout一样,但实现原理不一样,sleep的异步版本

示例

❖ 前端封装

htmlParse(html)

将给定的html字符串解析为DOM对象,用于快速编写爬虫脚本

示例

downloadFile(url, file | options)

下载文件,可选直接下载到指定路径,或者弹出对话框选择下载路径

uploadFile(url, file | options, name, formData)

上传文件,可以直接上传指定文件,或者弹出对话框选择要上传的文件,可以自定义表单数据

❖ nodejs 封装

loadRemoteScript(url)

加载一个远程脚本文件

kill(pid, signal)

signal 发送给 pid 标识的进程 , 默认为关闭进程,同process.kill

示例

runVbs(script)

windows 下运行 VBS 脚本

示例

❖ utools 封装

enterData

示例

simulateCopy()

模拟复制操作

simulatePaste()

模拟粘贴操作

其他

nodejs

文档

❖ 上下文

electron

文档

❖ 上下文

utools

文档

❖ 上下文

\ No newline at end of file diff --git a/src/helps/quickcommand.md b/src/helps/quickcommand.md index 29e7454..2558569 100644 --- a/src/helps/quickcommand.md +++ b/src/helps/quickcommand.md @@ -92,7 +92,7 @@ quickcommand.showInputBox(["要替换的内容,两边加 / 使用正则", "替 #### `showSelectList(selects, options)` - selects: Array 每一个元素对应一个列表选项 -- options: Array | undefined 列表的选项 +- options: Object | undefined 列表的选项 - placeholder: String 搜索框占位符 - optionType: String 选项的格式,有`plaintext`、`html`、`json`三种,默认为`plaintext` - 返回: Promise diff --git a/src/plugin.json b/src/plugin.json index d265868..8c92ac5 100644 --- a/src/plugin.json +++ b/src/plugin.json @@ -2,9 +2,9 @@ "pluginName": "快捷命令", "description": "快速打开软件、网址及运行批处理、shell等脚本,免编写插件使用utools的api及实现UI交互", "main": "index.html", - "homepage": "https://github.com/fofolee/uTools-QuickerCommand", + "homepage": "https://github.com/fofolee/uTools-quickcommand", "publishPage": "https://yuanliao.info/d/424", - "version": "2.3.2", + "version": "2.3.4", "author": "云之轩", "unpack":"autopep8.py", "logo": "logo.png",