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

PowerToys breaks GreenShot screenshotting software + workaround #531

Closed
DigitalStaff opened this issue Oct 19, 2019 · 11 comments
Closed

PowerToys breaks GreenShot screenshotting software + workaround #531

DigitalStaff opened this issue Oct 19, 2019 · 11 comments
Assignees
Labels
Issue-Bug Something isn't working Product-FancyZones Refers to the FancyZones PowerToy Resolution-External External issue, unrelated to PowerToys Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Milestone

Comments

@DigitalStaff
Copy link

I notice that when PowerToys is running, and I use GreenShot to take a screenshot, it only allows me to screenshot one of the "zones" on my screen. I have a 3 monitor setup. It makes a small window of the left monitor show up in the left side of my middle monitor. I've attached a photo of my monitor when the bug happens.

PowerToys_Breaks_Greenshot

This is super annoying, because in order to use GreenShot I would need to close PowerToys, then take the screenshot, then open PowerToys again.

I made a workaround in AutoHotKey, which closes PowerToys, sends the print screen command to GreenShot and allows me to select a region, then 5 seconds later opens PowerToys again.

The workaround AutoHotKey Script:
PrintScreen::
Run, PowerShell.exe -noexit -Command "Stop-Process -Name "PowerToys" -Force",, hide
Send {PrintScreen}
Sleep, 5000
Run, C:\Program Files\PowerToys\PowerToys.exe
Return

Hope this bug report, and workaround is helpful to someone!!

@enricogior
Copy link
Contributor

enricogior commented Oct 20, 2019

Hi @DigitalStaff
does this happen only with a three monitors configuration or is it possible to reproduce it with one or two monitors as well?
Thank you.

EDIT: adding a reference to Greenshot repo https://github.com/greenshot/greenshot/

@bzoz
Copy link
Contributor

bzoz commented Oct 22, 2019

For whatever reason, you have got Greenshot overlay assigned to a zone. The zone assignment is stored in the registry under HKEY_CURRENT_USER\SOFTWARE\SuperFancyZones\AppZoneHistory, you can find Greenshot there and remove it - this should solve your issue. We will keep this issue open until we find a general solution to those kinds of problems.

BTW, there is WinKey + Shift + S thingy build into Windows, which does similar things like Greenshot.

@Gadgetgeek2000
Copy link

Gadgetgeek2000 commented Oct 31, 2019

For whatever reason, you have got Greenshot overlay assigned to a zone. The zone assignment is stored in the registry under HKEY_CURRENT_USER\SOFTWARE\SuperFancyZones\AppZoneHistory, you can find Greenshot there and remove it - this should solve your issue. We will keep this issue open until we find a general solution to those kinds of problems.

Greenshot opens an editor after capturing the window. If that registry setting in AppZoneHistory is set for the GreenShot window, then the NEXT screen capture is limited to that zone. That seems to be the problem. If you come up with a function of programs to put on a "Never store window settings for this program" list, that would probably fix it.

I noticed if I snapped Greenshot into the top left zone, it put the registry setting in 20001. Greenshot behaved normally there. But if I moved the editor to one of my other zones it showed in a different registry location and the program wildly misbehaved when capturing screenshot.
2019-10-31 07_16_08-PowerToys breaks GreenShot screenshotting software + workaround · Issue #531 · m

BTW, there is WinKey + Shift + S thingy build into Windows, which does similar things like Greenshot.

The Windows screen capture program is light years behind GreenShot in functionality. Greenshot is amazing for documenting processes, with numbered steps, clean shapes (arrows, boxes, call-out text bubbles), and text obfuscation for sensitive info on the screen. Definitely check it out!

@enricogior enricogior added the Issue-Bug Something isn't working label Oct 31, 2019
@enricogior enricogior added this to the 0.14 milestone Nov 12, 2019
@enricogior enricogior added the Status-In progress This issue or work-item is under development label Nov 12, 2019
@enricogior
Copy link
Contributor

@DigitalStaff @Gadgetgeek2000
we added the option, in the FancyZones settings, to add applications that FancyZones should not process:

image

The new feature has been merge to the master branch and it will be available in the next release.
Thank you.

@enricogior enricogior added Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. Product-FancyZones Refers to the FancyZones PowerToy and removed Status-In progress This issue or work-item is under development labels Nov 18, 2019
@Gadgetgeek2000
Copy link

Gadgetgeek2000 commented Nov 18, 2019 via email

@bzoz
Copy link
Contributor

bzoz commented Nov 18, 2019

If the executable path contains the item from the box (case insensitive), it will be excluded. E.g. Word is WINWORD.EXE, but putting Word is enough to exclude it. Putting Microsoft Office will exclude all Office apps, since the binaries are in ...\Microsoft Office\root\Office16 folder.

For Greenshot specifically: just put greenshot there, it will get excluded.

@DigitalStaff
Copy link
Author

Wow, great work @bzoz and @enricogior!!

Thank you for implementing this exclusion feature. This will make everyone's FancyZones experience a lot more smooth. The workaround that I mentioned in my initial post with AutoHotkey isn't perfect, I would need to make some changes to the script to make it work as well as this new feature.

@crutkas
Copy link
Member

crutkas commented Dec 2, 2019

This is now fixed in PowerToys 0.14.0 https://github.com/microsoft/PowerToys/releases

@alfonsojon
Copy link

This is still impacting ShareX with the same exact symptoms. I am using PowerToys v0.23.2.

@enricogior
Copy link
Contributor

@alfonsojon
add ShareX to the excluded app list in the FancyZones settings.

@alfonsojon
Copy link

@alfonsojon
add ShareX to the excluded app list in the FancyZones settings.

Sick, that did the trick. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Product-FancyZones Refers to the FancyZones PowerToy Resolution-External External issue, unrelated to PowerToys Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

No branches or pull requests

5 participants