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
gui.py cannot capture screen in the second monitor #57
Comments
Hi, thanks for opening the issue. If not, can you please follow these steps:
import mss
with mss.mss() as sct:
sct.shot(mon=-1, output='fullscreen.png')
If so I might be able to rewrite the screen grabbing code. |
Thanks for your reply. Both |
Ok thank you, I think I understand now what you mean. |
should be fixed now with |
Hi, thank you for the excellent work. I meet some problems when using the gui. I am using Ubuntu20.04 with a kde desktop. After running the screen snip(button or alt+s), I can only start the area selection in the main monitor and the opacity only changes in the main monitor. If I press my mouse in the main screen and drag it to the second screen, the program can accurately select the area but the selected rectangle only shows the main screen part. I can not select area if I firstly press my mouse in the second screen.
When using the "gui.py" script, I slightly modify it and I'm quite sure that these changes are not related with this problem. Anyway, here are the changes that I made. The ImageGrab from PIL keep throwing errors so I change
from PIL import ImageGrab
toimport pyscreenshot as ImageGrab
. I also remove theall_screen
parameter in line 252:img = ImageGrab.grab(bbox=(x1, y1, x2, y2), all_screens=True)
since this parameter is only available in Windows.The text was updated successfully, but these errors were encountered: