flameshot-org / flameshot

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

When trying to screenshot Taskmanager using Printscreen button, it takes a fullscreen screenshot and doesnt use flameshot selector #3644

Open oMqngo opened 1 week ago

oMqngo commented 1 week ago

Flameshot Version

Flameshot v12.1.0 (96c2c82e) Compiled with Qt 5.15.2 winnt: 10.0.19045 windows: 10

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)

Operating System type and version

Windows 10

Description

When you try to take a screenshot of the windows taskmanager (doesnt matter if its "always on top" or not) using the Printscreen button, it will take a fullscreen screenshot instead of opening flameshot's selector to specify what to screenshot.

Steps to reproduce

  1. run the windows taskmanager
  2. press the printscreen button to initiate flameshot's screenshot selector
  3. the screenshot selector won't show, instead it will take a fullscreen screenshot (seen in the windows clipboard)

Screenshots or screen recordings

No response

System Information

Windows 10 22H2 1920x1080 Laptop screen

mmahmoudian commented 1 week ago

It seems by pressing printscreen you are running SnippingTool (Windows' default screenshot tool) and not Flameshot. Apparently Windows every now and then overwrites your settings and you should change it again.

Follow these steps:

https://flameshot.org/docs/guide/windows-help/#how-to-disable-windows-snipping-tool-when-i-press-printscreen

oMqngo commented 1 week ago

I disabled this feature but it only stopped taking fullscreen screenshots...

Ive found a small workaround without needing to do anything to the registry/add a shortcut:

  1. open taskmanager
  2. unfocus taskmanager
  3. open flameshot with the printscreen button
  4. take your screenshot without clicking on the taskmanager window (the screenshot tool wont be seen as soon as you go behind the taskmanager window but your mouse is still visible for reference)
mmahmoudian commented 1 week ago

Are you implying that the Windows TaskManager is behaving differently compared to the rest of the system?

oMqngo commented 1 week ago

I guess you could say that. Its as if the TM has some kind of VIP rights that overrules the settings (unless you click out of it), because even though I have the setting to take screenshots with the print screen button disabled, it will still take a fullscreen screenshot when in TM.

mmahmoudian commented 1 week ago

I don't have a Windows machine to test this, but I asked a friend to confirm this for me. Apparently you are absolutely right and Windows TaskManager behaves different!!

I will re-open this issue although I highly doubt that this can be solved by Flameshot as it seems to be a Windows thing.

oMqngo commented 1 week ago

sounds good! If this isnt a fixable thing don't worry about it, I can always just use my method to work around it 👍

oMqngo commented 1 week ago

sorry for posting on this thread again, but I just found another program that has this same behavior (the game Genshin Impact to be precise).

Pressing the print screen button doesn't open flameshot but takes a fullscreen screenshot instead.

I tried it in 2 other fullscreen games but it seems to work fine there. Maybe its an idea to give the user the ability to change the hotkey that launches the tool?

mmahmoudian commented 1 week ago

Thanks for keeping us updated and trying different approaches to identify the root cause of the issue.

sounds good! If this isnt a fixable thing don't worry about it, I can always just use my method to work around it 👍

If it is a Windows "security" thing, then it would be out of our hands.

Maybe its an idea to give the user the ability to change the hotkey that launches the tool?

That is already discussed in #1341 . Also the #2118 might help in some cases as well.

Pressing the print screen button doesn't open flameshot but takes a fullscreen screenshot instead.

Perhaps they hard-coded something in their game.