mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-24 04:53:31 +08:00
将发送文本从消息通知移到模拟操作,增加模拟粘贴选项
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
const { findImage } = require("./imageFinder");
|
||||
const { captureScreen } = require("./screenCapture");
|
||||
const sendText = require("./sendText");
|
||||
|
||||
module.exports = {
|
||||
findImage,
|
||||
captureScreen,
|
||||
sendText,
|
||||
};
|
||||
|
11
plugin/lib/quickcomposer/simulate/sendText.js
Normal file
11
plugin/lib/quickcomposer/simulate/sendText.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const sendText = (text, simulateCopy = false) => {
|
||||
if (simulateCopy) {
|
||||
window.utools.copyText(text);
|
||||
quickcommand.sleep(200);
|
||||
quickcommand.simulatePaste();
|
||||
} else {
|
||||
window.utools.hideMainWindowTypeString(text);
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = sendText;
|
Reference in New Issue
Block a user