💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
### 方式一 ```js var screen_window = execFile( global.process.cwd()+'/jietu/PrintScr.exe') //global.process.cwd()获取当前目录的绝对路径 screen_window.on('exit', function (code) { console.log(code) // 执行成功返回 1,返回 0 没有截图 if (code) mainWindow.webContents.paste() }) } ``` ### 方式二: ```js /* 通过 */ var cp = require('child_process'); //子进程 var path = '' cp.exec(path + "\mCapture.exe", function(error, stdout, stderr) { // document.execCommand('paste');//调用系统的粘贴事件 }) ```