flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
25.04k stars 1.6k forks source link

Prnt Scrn keyboard key doesn't work anymore #3271

Open hoprikoma opened 1 year ago

hoprikoma commented 1 year ago

Flameshot Version

Flameshot 12.1.0 (96c2c82e)

Installation Type

Using the ready-made package from Github Releases

Operating System type and version

Windows 11

Description

Prnt Scrn open win11 capture screen by default but not if Flameshot window is focused.

Steps to reproduce

  1. run Flameshot if not open
  2. click on random window
  3. see what appen

Screenshots or screen recordings

No response

System Information

Windows 11 Pro Build 22H2 Build version : 22621.1992 Windows Experience pack : Windows Feature Experience Pack 1000.22644.1000.0

NEckes commented 1 year ago

Same here, also Flameshot 12.1.0. Happened after Windows update. Update history says two packages have been installed: KB5028851, KB5028185 This seems to be a general problem with global hotkeys, the same problem arised with open-shell-menu project and the windows-key press. On the other hand my autohotkey scripts are still running fine, overriding keys like LWin+V

NEckes commented 1 year ago

Seems like KB5028185 contains changes to hotkeys The update to lastest OpenShell resolved my issues with OpenShell, hence i looked into the code diff and found: https://github.com/Open-Shell/Open-Shell-Menu/commit/615fe66544aecdc8afd4be0c3d55f3579c237d0d Seems like you need some new hook to prevent windows overriding the hotkey.

the-lensky commented 1 year ago

Same, win 11. Please fix and add the ability to reassign the button to make a screen on any other button

xllifi commented 1 year ago

Same, win 11. Please fix and add the ability to reassign the button to make a screen on any other button

Settings > Accessibility > Keyboard > toggle "Use the Print screen key to open Snipping Tool" option off settings

hoprikoma commented 1 year ago

Perfect thank you đź‘Ť Edit : I need to close the issue or Flameshot need to override this ?

Neeqstock commented 1 year ago

Settings > Accessibility > Keyboard > toggle "Use the Print screen key to open Snipping Tool" option off

Thanks, it worked! Had to reboot, but I confirm this solution works. Probably a solution should be implemented to warn users

krimtsev commented 1 year ago

Settings > Accessibility > Keyboard > toggle "Use the Print screen key to open Snipping Tool" option off

After disable Snipping Tool u must restart Flameshot.

kenvix commented 1 year ago

This issue also exists in Windows 10. Sometimes the PrtSc key just takes a full screenshot as Windows does by default and does not call Flameshot. I hope there is an option to change the hotkey if fixing this bug is hard.

duckiecto commented 1 year ago

Same, win 11. Please fix and add the ability to reassign the button to make a screen on any other button

Settings > Accessibility > Keyboard > toggle "Use the Print screen key to open Snipping Tool" option off settings

I love Windows Updates that enable something you don't want to use. Great find! And as mentioned by @krimtsev you need to close Flameshot and reopen.

gregoryhorn commented 1 year ago

I still have the issue with Windows 11 22H2 - 22621.1992

The print screen button will not activate flameshot under any circumstances.

Print screen still does nothing.

Tool is essentially useless until this gets fixed.

melicmic commented 1 year ago

Hi, If its still acctual.. I am using portable version (12.1.0, w11) and this worked for me: Troubleshooting-printscreen

But firstly I uninstalled M$ Snipping tool (+reset).

picklefan commented 1 year ago

I have this issue and cannot solve it via the steps above. My system is as follows:

Edition Windows 11 Pro
Version 22H2
Installed on    ‎5/‎15/‎2023
OS build    22621.2283
Experience  Windows Feature Experience Pack 1000.22662.1000.0

When I disable the Print Screen for Snipping Tools, the system will take a screenshot with an internal app, not flameshot/snipping tools, restart makes no difference.

Can we customize the default hotkey for Flameshot to take a screenshot? I think the MS team have their own plans for The PrtScr key it breaks every now and then even with snipping tools.

melicmic commented 1 year ago

@picklefan: uninstall MS Snipping tool, in Windows settings turn off option "use prt screen button for opening Snipping.." and just for once run Flameshot as admin and under admin privilegies go to Flameshot settings and check "Lunch at windows startup" (or what is the translation). If its already set, then uncheck it->close -> reopen as admin and check again.

This worked on 3 PCs and also worked for Snagit screenshot app. Mostly important is to uninstall that MS snipping

picklefan commented 1 year ago

@picklefan: uninstall MS Snipping tool, in Windows settings turn off option "use prt screen button for opening Snipping.." and just for once run Flameshot as admin and under admin privilegies go to Flameshot settings and check "Lunch at windows startup" (or what is the translation). If its already set, then uncheck it->close -> reopen as admin and check again.

This worked on 3 PCs and also worked for Snagit screenshot app. Mostly important is to uninstall that MS snipping

No luck. I've tried these:

  1. Uninstall Snipping Tools, uncheck "Use the Print screen key to open Snipping Tool", run flameshot as admin, press PrtSc but nothing happens.
  2. Disable flameshot auto start and restart PC. Open flameshot as admin and press prtSc then Windows will call some build-in software not flameshot to take a screenshot.
  3. Then I reinstall flameshot and open it as admin, but still Windows calls the system build-in. Make it autostart and restart makes no difference.

If your PC works fine then either my OS is broken or your system is older/newer than mine(bug/feature does not exist yet./bug/feature fixed). Can you provide your OS build version so I can tell if my system is broken or it's all due to the version thing?

By the way, Snagit screenshot works fine on my PC.

melicmic commented 1 year ago

@picklefan: Win 11 Enterprise, 22H2,

OS build: 22621.2283 Flameshot version: 12.1.0. I am using a portable version. (stored on C:\ ; but that shouldn't be a problem.)

Usually uninstalling Snipping tool solved 99% problems with printscreen button for flameshot user or even Snagit :-(. But no one in company has installed both apps.

Check MS Store if Snipping tool is really uninstalled. It also could be a mess in registry.

My colleague installed a regular Flameshot app and seems he is not complaining about mapping PrtScr. Anyway I'm gonna test it on fresh PC installation and mark down all steps I do.

UPDATE: So I made test with portable verison of Flameshot. Same build (only desktop PC), loged user has no admin privilegies.

  1. Only disabled Use PrtScr Open Snipping (Settings>Accessibility>Keyboard)
  2. Copied FS to C:\New_folder, lucnh it as normal. => PrtScr opened FS.
  3. Checked "launch at startup" as normal user => PC restarted, FS not started automatically and not responding on PrtScrn, Snipping tool did not open even.
  4. Opened FS as admin (verified by my adm_tenant account) unchecked "launch at startup" > closed settings > reopening and checked option again (kind of missing "Save" button in settings) => PC restarted and not solved problem with "launch at startup", had to promote standard user to administrator and repeat it.

Meanwhile, if Flameshot is running then PrtScr will open it. Only problem is when option "Use PrtScr Open Snipping" is on and FS is also running then bigger boy take lead after PC restart. (aka Snipping tool).

Seems, its not neccessary uninstalling Snipping tool but I had experienced few situations with (working) Snagit that after some Windows updates It started opening Snipping tool again. So I rather recommend uninstall it. Sure, It's not bulletproof as MS is doing what he wants with your settings (many times I've uninstalled CandyCrashs app (and other ads) in Win10 and yet I got them back with another major update..)

Try portable verison or check registry, if its correctly associated.

picklefan commented 1 year ago

@mmelicher91 Thank you so much for your help and all the tests you've done. It helps a lot. After all the methods I've tried, I finally found out it was OneDrive that was messing up with my PrtSc key. OneDrive -> Settings -> Sync and backup -> Save screenshots I capture to OneDrive, uncheck it, and everything goes fine.

vico93 commented 10 months ago

I'm having the same issue, but instead of disabling Windows Snipping Tool i was looking around if is possible to change the flameshot's activation hotkey (instead of just Print Screen). In my configuration it's disabled (cannot change).

mmahmoudian commented 10 months ago

I'm having the same issue, but instead of disabling Windows Snipping Tool i was looking around if is possible to change the flameshot's activation hotkey (instead of just Print Screen). In my configuration it's disabled (cannot change).

Not yet possible in Windows.

anko20094 commented 9 months ago

Still doesn't work in Windows 11...

Cambrian-Lee commented 7 months ago

@mmelicher91 Thank you so much for your help and all the tests you've done. It helps a lot. After all the methods I've tried, I finally found out it was OneDrive that was messing up with my PrtSc key. OneDrive -> Settings -> Sync and backup -> Save screenshots I capture to OneDrive, uncheck it, and everything goes fine.

Actually, I hadn't heard about Snagit before. It turned out to be a great tool, and it would be excellent if it were free, LOL. So it is not on my computer anymore. What MS annoys me most is that Win11 cannot put the taskbar on top. Other than that, it works fine to me (Win10 was a nightmare when it was first released).

Anyway, thanks a lot. The good thing is I don't have to try installing a portable one (It would actually do the trick since OneDrive doesn't enable the evil option by default).

i have the same problem as you, and solved it using your method,Thanks!