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

OneDrive causing hotkey conflict #6581

Open
mbressman opened this issue Nov 7, 2022 · 14 comments
Open

OneDrive causing hotkey conflict #6581

mbressman opened this issue Nov 7, 2022 · 14 comments

Comments

@mbressman
Copy link

Received the below error when I recently rebooted my PC (after setting up OneDrive personal). I was able to get around it by simply closing out of ShareX and OneDrive and then re-launching ShareX first and then OneDrive, but how do I avoid this in the future? Thanks!

ShareX - Hotkey registration failed

@FrankE-Aqura
Copy link

Received the same error. I'm a new user so it wasn't the best thing to see the first time I started the program.
Running Windows 11 21H2 (22000.1098), ShareX 14.1 and OneDrive Personal and OneDrive for Business (22.131.0619.0001 64-bit)

2022-11-16 08:47:45.663 - Loading new HotkeysConfig instance.
2022-11-16 08:47:45.666 - Language changed to: English (United States)
2022-11-16 08:47:45.670 - MainForm init started.
2022-11-16 08:47:46.078 - MainForm init finished.
2022-11-16 08:47:46.250 - Startup time: 2125 ms
2022-11-16 08:47:46.271 - Hotkey registered: Hotkey: Ctrl + Print Screen, Description: Capture region, Job: RectangleRegion
2022-11-16 08:47:46.272 - Unable to register hotkey: Print Screen
2022-11-16 08:47:46.272 - Hotkey register failed: Hotkey: Print Screen, Description: Capture entire screen, Job: PrintScreen
2022-11-16 08:47:46.272 - Unable to register hotkey: Alt + Print Screen
2022-11-16 08:47:46.272 - Hotkey register failed: Hotkey: Alt + Print Screen, Description: Capture active window, Job: ActiveWindow
2022-11-16 08:47:46.272 - Hotkey registered: Hotkey: Shift + Print Screen, Description: Start/Stop screen recording, Job: ScreenRecorder
2022-11-16 08:47:46.272 - Hotkey registered: Hotkey: Ctrl + Shift + Print Screen, Description: Start/Stop screen recording (GIF), Job: ScreenRecorderGIF
2022-11-16 08:53:19.529 - HotkeyManager started.
2022-11-16 08:53:19.530 - WatchFolderManager started.

@mcouillard
Copy link

Same here! The workaround of having OneDrive startup later, after ShareX, seems like the best we have for now: https://windowsloop.com/delay-onedrive-startup/

@mbressman
Copy link
Author

Any updates?

@sgovaerts
Copy link

This is usually for the first time use on your profile on that pc if you havent used printscreen yet.
You can fix this by making sure sharex is closed and onedrive is currently running. Press the printscreen key and onedrive should pop up asking you whether you want to store screenshots. Ask it not to automatically save screenshots to onedrive. Launch sharex, try pressing the printscreen key and it should work now.

@mbressman
Copy link
Author

mbressman commented Jan 3, 2023

This is usually for the first time use on your profile on that pc if you havent used printscreen yet. You can fix this by making sure sharex is closed and onedrive is currently running. Press the printscreen key and onedrive should pop up asking you whether you want to store screenshots. Ask it not to automatically save screenshots to onedrive. Launch sharex, try pressing the printscreen key and it should work now.

UPDATE: I was wrong - the above advice does seem to work and resolve the issue. This is the pop-up you will get and you can click "No thanks" and then on a reboot I did not receive the ShareX error and was able to use PrtSc as normal with ShareX. Thanks!

OneDrive pop-up asking if you want it to save screenshots automatically when pressing PrtSc button

Original Post: I think all the above steps do is disable the "Save screenshots I capture to OneDrive" setting. I already have that setting disabled, but still run into this issue because OneDrive launches first and still somehow takes over the PrtSc hotkey even with the setting disabled.

@K1LL3RDragon
Copy link

For me it worked, Close ShareX. Then press PRTSC, select NO THANKS. Then start ShareX and all is working.

@mikehoopes
Copy link

mikehoopes commented Apr 21, 2023

Windows 11 Insider Preview build 22624.1610 (KB5025299) created a new one for me. I have Shift + Windows + R configured for ShareX Capture region in several places, notably in over 20 LGS application profiles (Logitech G600 gaming mouse) instanced on 4 different PCs. A Windows update allocated that shortcut back to the improved, but comparably inferior Windows Snipping Tool.

I initiated uninstall of the Windows Snipping tool app, but it hasn't left yet. I could disable all Win + shortcuts in Group Policy, but that seems like a bridge too far. The alternative right now is to change the ShareX hotkey and update that hotkey in 80+ different application profiles in LGS on those 4 machines.

I submitted a report on the Feedback Hub: https://aka.ms/AAkii34

image

Microsoft is coming for your hotkeys, people...get ready! ;-)

@TheChilliPL
Copy link

I have just updated Windows and I have a similar issue. PrintScreen opens the snipping tool

image

But I did find a way to fix it:

  1. Open settings (Win+I)
  2. Open Accessibility
  3. InteractionKeyboard
  4. Switch Use the Print screen key to open Snipping Tool off
  5. Restart ShareX

@jdmsft
Copy link

jdmsft commented Sep 8, 2023

None of the above solutions worked for me. Here's a workaround that works for my case (W11 22H2 - OneDrive client 23.182) . I hope this helps some of you 🙂

  1. Close ShareX
  2. Click on systray white OneDrive icon
  3. Go to Settings
  4. In Sync and backup tab, enable Save screenshots I capture to OneDrive
  5. On the pop-up window, click on Choose Folder and exit right away when the new window is opened
  6. In Sync and backup tab, disable Save screenshots I capture to OneDrive
  7. Close OneDrive Settings window
  8. Start ShareX (it should work as expected now 🙂)

@DiabetoLive
Copy link

This is usually for the first time use on your profile on that pc if you havent used printscreen yet. You can fix this by making sure sharex is closed and onedrive is currently running. Press the printscreen key and onedrive should pop up asking you whether you want to store screenshots. Ask it not to automatically save screenshots to onedrive. Launch sharex, try pressing the printscreen key and it should work now.

This is 100% the solution.

@MichelSchuurman
Copy link

For me it worked, Close ShareX. Then press PRTSC, select NO THANKS. Then start ShareX and all is working.

This is usually for the first time use on your profile on that pc if you havent used printscreen yet. You can fix this by making sure sharex is closed and onedrive is currently running. Press the printscreen key and onedrive should pop up asking you whether you want to store screenshots. Ask it not to automatically save screenshots to onedrive. Launch sharex, try pressing the printscreen key and it should work now.

UPDATE: I was wrong - the above advice does seem to work and resolve the issue. This is the pop-up you will get and you can click "No thanks" and then on a reboot I did not receive the ShareX error and was able to use PrtSc as normal with ShareX. Thanks!

OneDrive pop-up asking if you want it to save screenshots automatically when pressing PrtSc button

Original Post: I think all the above steps do is disable the "Save screenshots I capture to OneDrive" setting. I already have that setting disabled, but still run into this issue because OneDrive launches first and still somehow takes over the PrtSc hotkey even with the setting disabled.

Had the issue with the key combination ALT-PRTSC and this solved the issue.
Within the current OneDrive Gui, disabling key-combo's is nowhere to be found.
This did the trick, thanks!

@sebastienbo
Copy link

sebastienbo commented Jan 20, 2024

Disabling the "screenshot" in the accessibility keyboard settings broke ShareX completely for me. I also tried uninstalling Snipping Tool, but it remains on the system (impossible to remove).

Finally, I found out that when you disable the screenshot feature in the accessibility options, OneDrive forcibly takes over the PrintScreen key, causing a conflict with the user preferences (ShareX) in our case.

I had to disable the screenshot feature, then disable screenshot backups in OneDrive (while ShareX is closed), and then press PrintScreen. Here, you tell OneDrive "No thank you, I don't want your backups because it screws up my PrintScreen preferences." Then you go back into ShareX and set your hotkey back to 'PrintScreen,' and now it will work (until the next OneDrive or Snipping Tool update...).

Microsoft developers seem to NOT care about user preferences; in both cases (Snipping Tool & OneDrive), the PrintScreen button was hijacked without the user's consent.

@FireCulex
Copy link

FireCulex commented Feb 3, 2024

None of these solutions worked for me. Win11 22621.3085

ShareX_rFvGhmtS1H

But it works on my Laptop, Win11 22621.3007

edit: I had to reboot because even changing the hotkeys failed to work. God knows what it was.

@zebitty
Copy link

zebitty commented Feb 10, 2024

None of the above solutions worked for me. Here's a workaround that works for my case (W11 22H2 - OneDrive client 23.182) . I hope this helps some of you 🙂

1. Close ShareX

2. Click on systray white OneDrive icon

3. Go to **Settings**

4. In **Sync and backup** tab, enable **Save screenshots I capture to OneDrive**

5. On the pop-up window, click on **Choose Folder** and exit right away when the new window is opened

6. In **Sync and backup** tab, disable **Save screenshots I capture to OneDrive**

7. Close **OneDrive Settings window**

8. Start ShareX (it should work as expected now 🙂)

Thanks. Other solutions were no help. This worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests