nashaofu / screenshots

A screenshot plugin for electron and react

Home Page:https://nashaofu.github.io/screenshots/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows上,先hide窗口再截图,会截到窗口的虚影,监听窗口hide事件再截图也无效

MrSteins opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Reproduce repository
You can fork the repository below to test
https://github.com/nashaofu/electron-screenshots-issue

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: [e.g. iOS]
  • Electron [e.g. 16.0.0]
  • electron-screenshots [e.g. 0.5.0]

Additional context
Add any other context about the problem here.

这个问题可能解决不了,你是需要截取指定窗口吗?还是只截取桌面?

@nashaofu 截取桌面

@MrSteins 你好,我也遇到了这个问题,截图前需先隐藏窗口,我使用了win.hide() 但依然有窗口残影,请问你解决了吗?