mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-10 23:53:29 +08:00
屏幕找图去掉从剪贴板获取图片按钮,添加直接截图获取按钮
This commit is contained in:
@@ -115,15 +115,15 @@ async function captureScreen(range = "fullscreen") {
|
||||
}
|
||||
|
||||
async function captureScreenToFile(range = "fullscreen", path = null) {
|
||||
if (!path) return null;
|
||||
if (!path) return;
|
||||
const result = await captureScreen(range);
|
||||
if (!result) return null;
|
||||
if (!result) return;
|
||||
fs.writeFileSync(
|
||||
path,
|
||||
result.replace("data:image/png;base64,", ""),
|
||||
"base64"
|
||||
);
|
||||
return result;
|
||||
return;
|
||||
}
|
||||
|
||||
async function captureScreenToClipboard(range = "fullscreen") {
|
||||
|
Reference in New Issue
Block a user