mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-09-23 20:44:42 +08:00
编排补齐utools窗口交互和内容输入的功能
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
const { findImage } = require("./imageFinder");
|
||||
const { captureScreen } = require("./screenCapture");
|
||||
const sendText = require("./sendText");
|
||||
const { keyboardTap, keySequence } = require("./keyboardTap");
|
||||
|
||||
module.exports = {
|
||||
findImage,
|
||||
captureScreen,
|
||||
sendText,
|
||||
keyboardTap,
|
||||
keySequence,
|
||||
};
|
||||
|
@@ -1,11 +0,0 @@
|
||||
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