-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
electron中截图总是出现鼠标的游标 #156
Comments
同样的问题,截图会截到小光标 |
我感觉应该是当按下截图,弹出截图框的那一刻,屏幕画面被定格了,然后光标也被固定到了画面上,当你的截图框选择到光标所在的区域的时候,它就会出现在所截的图片上,我想如果在画面定格前或者截图框出现前把鼠标光标隐藏起来,等截图结束再释放出来,应该能解决这个问题。 |
我刚才试了一下确实可以解决这个问题,我在截图窗口显示之前,通过nut-js这个库让鼠标移动到屏幕外(隐藏光标),然后在截图框初始化完成之后(ScreenShot的triggerCallback回调)再让鼠标移动到屏幕中间,完美解决! |
好家伙,这个库这么强大吗?直接移动鼠标位置 |
是的,不仅可以移动鼠标,还能操作键盘,剪切板,我用这个库结合webrtc实现了桌面远程控制,就像向日葵一样 |
Version of js-screen-shot
1.9.9-rc.18
问题描述
这是我在我的electron应用中截的两张图片,每次截图屏幕上都会出现鼠标的游标,正常情况下不应该出现吧
The text was updated successfully, but these errors were encountered: