增加读写剪贴板的接口

This commit is contained in:
fofolee
2022-04-29 00:38:07 +08:00
parent 54790b5ea5
commit f0e4022e3b
2 changed files with 37 additions and 17 deletions

View File

@@ -352,6 +352,18 @@ interface quickcommandApi {
*/
simulatePaste();
/**
* 读取剪贴板
*/
readClipboard(): text<string>;
/**
* 写入剪贴板
*
* @param text 要写入的文本
*/
writeClipboard(text: string);
/**
* 唤醒 uTools
*