Skip to content
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

Fixing Mouse Flicker when doing rapid Screenshots #179

Closed
BanditTech opened this issue Aug 13, 2020 · 3 comments
Closed

Fixing Mouse Flicker when doing rapid Screenshots #179

BanditTech opened this issue Aug 13, 2020 · 3 comments

Comments

@BanditTech
Copy link

General information:

  • OS name: Windows
  • OS version: 10
  • OS architecture: 64 bits
  • Resolutions:
    • Monitor 1: 1920x1080
    • Monitor 2: 1920x1080
  • Python version: 3.8.3
  • MSS version: 6.0.0

Description of the warning/error

This issue occurs when taking rapid screenshots of a fullscreen game. I have an issue of the mouse flickering on the screen, constantly disappearing and reappearing.

Full message

There is no error, it functions as intended and the output is the proper screen capture.

Other details

In order to resolve this issue I have manually adjusted the parameters of the capture within the windows.py file.

Excluding the value CAPTUREBLT ( 0x40000000 ) fixes the issue and allows the captures to happen rapidly without affecting the cursor.

The line is on 290
remove the " | CAPTUREBLT " and it resolves the issue.

@BoboTiG
Copy link
Owner

BoboTiG commented Aug 13, 2020

What you could do is simething like:

import mss.windows
mss.windows.CAPTUREBLT = 0

# And then you do the screenshot
import mss
# ...

@BanditTech
Copy link
Author

Thank you, this fixes it in a much more elegant way than ablation. 👍

@BoboTiG BoboTiG added the bug label Aug 14, 2020
@Boxylmer
Copy link

Boxylmer commented Jan 9, 2023

Fastest issue I've ever found an immediate solution to. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants