ianzhao05 / textshot

Python tool for grabbing text via screenshot
MIT License
1.72k stars 258 forks source link

Screen turns black when opening textshot #50

Closed DahilerMehvOlur closed 2 years ago

DahilerMehvOlur commented 2 years ago

When I run textshot opposite this problem. I show in video. Sorry bad english if I mistake anywhere.

https://user-images.githubusercontent.com/112520722/187555440-6fd7f968-262d-4c47-869e-a7388f121fed.mp4

ianzhao05 commented 2 years ago

Thanks for opening the issue and for the detailed video.

You are on Linux, correct? I'm assuming this is an issue with transparency and your specific desktop. As a workaround, you can comment out line 47 of textshot.py. I will look into this further!

DahilerMehvOlur commented 2 years ago

Screenshot_20220902_215132 Yes. I run manjaro kde plasma. And you are correct I customized my desktop. I use layan theme. But I am not a programmer. In this sentence (As a workaround, you can comment out line 47 of textshot.py) you say to add hashtag to the head of the line? Edit: I do that but still same problem

ianzhao05 commented 2 years ago

That's interesting, I'm not sure why there would be a black rectangle if you commented out the line that draws the rectangle. I can't reproduce this, so I'm not quite sure what would be causing it. You can maybe try commenting out lines 45-47.

DahilerMehvOlur commented 2 years ago

Unfortunately, nothing has changed. The tool you do is really useful. Just in the style I'm looking for. It can cut it with a single click and make it. It does not require any program interface. It's doing his job with only one shortcut button. That's why I don't want to give up the tool. So you know, just like this, there is a tool alternative?

ianzhao05 commented 2 years ago

I still can't think of why there would be the black rectangle. Thank you for testing and reporting this bug. You can try something like https://github.com/dynobo/normcap; maybe it will work better on your machine.

DahilerMehvOlur commented 2 years ago

I tried the normcap. But this time he didn't do OCR instead of a rectangular problem. :D. So the normcap was already eliminated. Continue to use textshot. After all, he does his job well, although not comfortable. Thanks for tool. After all, the rectangular problem is not because of you. Because of the theme I use. ❤️Thank you for your interest❤️