mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 15:04:06 +08:00
12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
const sendText = (text, simulateCopy = false) => {
|
|
if (simulateCopy) {
|
|
window.utools.copyText(text);
|
|
quickcommand.sleep(200);
|
|
quickcommand.simulatePaste();
|
|
} else {
|
|
window.utools.hideMainWindowTypeString(text);
|
|
}
|
|
};
|
|
|
|
module.exports = sendText;
|