Comments (7)
4.0的没有测试,我会在4.0的版本测试一下
from screenshots.
我这边在mac os使用4.0是可以的,windows暂时没有电脑测试,感觉应该是没有问题才对
from screenshots.
抱歉这么久才回复,
我用另一台电脑测试了windows,同时也测试了linux
应该都是以下的问题:
- 在dev模式下,由于以下这个错误导致无法截图
Not allowed to load local resource: file:///.../node_modules/electron/dist/resources/default_app.asar/node_modules/shortcut-capture/dist/renderer/index.html
- build打包运行的就可以
所以我遇到的问题应该是在dev模式的路径问题,请问你是在dev模式测试的还是build模式呢
from screenshots.
你直接使用npm安装打包的就好了呀,如果你是要clone我的仓库去自己修改,那么直接运行命令npm run dev
就好了。不是很清楚你为什么要使用dev模式,还有你是如何使用的,报错问题可以确定为截图界面HTML URL问题
from screenshots.
可能没有表述清楚,我说的dev模式是我工程的dev模式,我是直接使用你的npm包的,就是在我的项目的dev模式下你的包会报错,但是build打包就不会报错
from screenshots.
你可以手动指定一下截图界面加载的html文件,指向插件目录下的index.html就行了
from screenshots.
好的,谢谢~
from screenshots.
Related Issues (20)
- mac端打包后每次截图都会弹出屏幕录制权限提示,而且除了当前应用其他应用被隐藏 HOT 4
- 打包在window上正常,但打包到在linux arm点击无效 HOT 4
- 0.5.20升级0.5.21后,linux(统信)截图时无法触发screenshots.$win.on('focus') HOT 1
- 找不到`node-screenshots.win32-x64-msvc.node`文件 HOT 6
- 希望能像微信QQ一样能默认选中窗口 HOT 1
- 在electron-vite里使用无法使用 HOT 6
- 在触摸屏下无法使用。。。
- 能支持windows端跨屏载图吗 HOT 1
- electron 工程主进程打包使用webpack 设置了externals,electron-forge 打出包后运行报错 HOT 1
- electron style cursor
- 关于该插件优化建议 HOT 1
- vite-electron-vue3-ts项目,本地使用正常,打包后报错 HOT 7
- 升级到0.5.24(及以上)后报错:UnhandledPromiseRejectionWarning: TypeError: Screenshots is not a constructor HOT 2
- 内存得不到释放 HOT 1
- [Mac] startCapture后 Command+Tab快捷键仍然起作用
- windows上,先hide窗口再截图,会截到窗口的虚影,监听窗口hide事件再截图也无效 HOT 3
- 截图后事件回调都不触发,粘贴到微信或者qq是可以获取到所截图片的
- 成功回调screenshots.on会随着裁切的次数进行累积的触发 HOT 2
- win 10 截取 前需先隐藏窗口,我使用win.hide() 后截图依然显示窗口
- 使用提供的esc 关闭截图方法后,其余应用程序esc 都失效了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screenshots.