mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-14 22:54:32 +08:00
win自动化分类新增界面自动化,支持向指定窗口指定控件发送键盘、鼠标消息
This commit is contained in:
@@ -208,7 +208,14 @@ const quickcommand = {
|
||||
if (err) return reject(err.toString());
|
||||
// 添加命令行参数
|
||||
const argsStr =
|
||||
args.length > 0 ? " " + args.map((arg) => `"${arg}"`).join(" ") : "";
|
||||
args.length > 0
|
||||
? " " +
|
||||
args
|
||||
.map((arg) =>
|
||||
arg.startsWith("-") ? arg : `"${arg}"`
|
||||
)
|
||||
.join(" ")
|
||||
: "";
|
||||
child_process.exec(
|
||||
`${cscPath} /nologo /out:${tempBuildFile} ${tempCsharpFile} && ${tempBuildFile}${argsStr}`,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user