ShareX / ShareX

ShareX is a free and open source program that lets you capture or record any area of your screen and share it with a single press of a key. It also allows uploading images, text or other types of files to many supported destinations you can choose from.
https://getsharex.com
GNU General Public License v3.0
28.11k stars 3.1k forks source link

Unable to register hotkeys after Windows update #1112

Closed coggy9 closed 8 years ago

coggy9 commented 8 years ago

After upgrading Windows 10 to the Fall Update, build 10586, ShareX is unable to register the hotkeys I has set. I have tried reinstalling, but the issue still exists. The logs do not say anything helpful. Is there any way to enable more detailed logs, or figure out which app has that key combination in use, if any?

Debug log

Error and Winver

Jaex commented 8 years ago

It must be OneDrive using these hotkeys. New OneDrive update have screenshot support and even if you disable this feature still it registers these hotkeys and not allows other software to register them.

coggy9 commented 8 years ago

Thanks. I didn't even notice that was re enabled on startup after the update.

kodybaker commented 8 years ago

What's the solution?

Jaex commented 8 years ago

Select different hotkey or close conflicting application.

DooubleTap commented 8 years ago

its funny how this community says "well the problem is another program" boom closed. like... can you tell me how to fix my issue? ...

Jaex commented 8 years ago

I already told, check previous message...

Even that hotkey registration failed window tells same thing to you:

DooubleTap commented 8 years ago

no, you didn't told me anything. you just closed it. There is no instructions whatsoever in here.

Jaex commented 8 years ago

This one?

dasjestyr commented 8 years ago

@SebLemery right click on the OneDrive icon in your system try and go to settings. On the Auto Save tab, uncheck the "Automatically save screenshots I capture to OneDrive" checkbox. Then restart ShareX It seems that option bullies its way into controlling your screenshot keys.

oldmud0 commented 8 years ago

It seems that OneDrive can show this option unchecked, but it may still hook the hotkeys anyway. Interesting...

Daniel15 commented 8 years ago

I wish I could just tell OneDrive to stop hooking the keys. All I care about is ShareX. <_<

McoreD commented 8 years ago

@oldmud0 yes that's right; I noticed this too.

oldmud0 commented 8 years ago

In theory, if ShareX started before OneDrive, it could hook the hotkeys before OneDrive starts.

DARKFiB3R commented 8 years ago

Using something like these to delay or edit the order in which applications start on your system seems like a possible fix. http://www.thewindowsclub.com/set-delay-time-startup-programs-windows

EDIT: I used the free version of Startup Delayer, and that has fixed the issue for me.

I gave ShareX, Dropbox and OneDrive a manual delay of 0 but made sure that ShareX is first in the list.

2016-03-31_11-05-48

EDIT 2: Thank you to @oldmud0 for giving me the idea ;)

Daniel15 commented 8 years ago

Great idea, thanks @DARKFiB3R! I used to delay application startup many many years ago back when I used Windows 98. At the time, it was a great way to ensure your system wasn't bogged down by heaps of apps all trying to start at the same time (especially given hard drives were much slower then). I didn't even think of using the same principle here. In my case I just completely disabled OneDrive, but I might re-enable it and do this instead! :smile:

MagicMau commented 7 years ago

You will need to sync your OneDrive's screenshot folder in order for it to understand NOT to hook the PrintScreen key. See also this comment that explains it in more detail with screenshots. It basically comes down to enabling the feature, syncing your Screenshot folder and then disabling it again. This worked for me!

m4tic commented 6 years ago

A year later, I discovered this application and it's awesome, but has the keyboard conflicts with onedrive. I tried the startup delayer workaround as shown above and it works great. Thanks!

nvivo commented 6 years ago

Very old thread, but I solved this sometime ago and forgot it, spent the last minutes looking for a solution again. So, a simple solution that works for me on a clean install currently:

  1. Press Print Screen, let one drive ask you if you want to use the feature to save screenshots there.
  2. Say "No, thanks"
  3. Go back to ShareX hotkey settings and "Restore defaults" or restart the computer

Once you say "no, thanks", one drive stops binding to these keys.

sharp-dev commented 6 years ago

1 - sorry for the electronic translator 2 - my decision is 99% the same. and it's just 3 - Finish ShareX 4 - press PtrScr 5 - "OneDrive" asks a question - answer is NO 6 - restart ShareX ..enjoy

nem8 commented 5 years ago

Can confirm @sharp-dev's solution works flawlessly. Note that this only applies to Onedrive Personal, Onedrive business doesnt have the screenshot capability.

Novattz commented 5 years ago

another solution that may be worse is that you right click on the onedrive icon and then tell it to not start up when signed into windows. Then you right click on lightshot and click options. Then you just click okay then it should work.

krygstem commented 4 years ago

Dropbox has the same problem with Sharex, just disable autosaving of screenshots.

GitAlexToTheGreek commented 4 years ago

Hi all ๐Ÿ™‚

What about a scenario where OneDrive is uninstalled but the same conflict alert message appears after each system start?

๐Ÿค”

ShareX v13.1

Windows 10 Home Version 1909 OS build 18363.836

-> Can anyone suggest how to narrow down what the conflicting application could be?

Thanks in advance, Alex

GitAlexToTheGreek commented 4 years ago

Anyone?

tikkatek commented 3 years ago

@GitAlexToTheGreek, I'm new and just started using this app after a recommendation. Couple of things I noticed. First thing was that OneDrive Personal (not Business) has the option that hijacks the shortcut. After disabling this, it was then Snip & Sketch that was taking over.

Go into Settings and search for "print", the option "Use the Print Screen key to launch screen snipping" should be available. image

Click on that and search for the "Print Screen shortcut" option, then toggle it off. image

ShareX started working for me from there.

Good luck!

EDIT: I did not use or try the delayer as suggested above

GitAlexToTheGreek commented 3 years ago

Hi tikkatek ๐Ÿ˜‰

I appreciate the feedback...

Checked and sure enough that setting (Print Screen shortcut) was enabled. I just deselected it.

Thankfully since my last post, the alert message stopped appearing following system restarts...and it's not even clear what fixed it ๐Ÿ™ƒ

At any rate, I wasn't using the PrtScn shortcut to trigger ShareX to begin with so no harm in making all if this stuff a little less complicated.

Cheers.

tayeep commented 3 years ago

Why would this be OneDrive or Windows Snipping Tools problem? If I use Greenshot, it never fails to capture the shortcut key.

Also, if I manually go to ShareX > Hot Key Settings > Click and set the shortcut key again, it works. Isn't this mean if ShareX tries to re-capture the shortcut key again after everything loaded, it can be successful?

Bluscream commented 3 years ago

You will need to sync your OneDrive's screenshot folder in order for it to understand NOT to hook the PrintScreen key. See also this comment that explains it in more detail with screenshots. It basically comes down to enabling the feature, syncing your Screenshot folder and then disabling it again. This worked for me!

Sadly the link is 404

sharp-dev commented 3 years ago

I've been using a very simple solution for a long time:

it is enough to do it once

bscreative commented 3 years ago

Nothing in this thread helped me. On random occasions, OneDrive or DropBox would take control. Here's what I did to permanently stop the problem.

The Solution: Disable auto startup on OneDrive and DropBox. Then set up Scheduled Tasks in Windows to launch OneDrive and DropBox 1 minute after startup (if you have a SSD). If you're running an older HDD, 3-4 minute delays might be better.

The instructions for delaying OneDrive are well very documented here.

DropBox is the same process, except it uses the following Program location: "C:\Program Files (x86)\Dropbox\Client\Dropbox.exe" Argument: /home Screenshot: https://i.imgur.com/OkypKDx.png

bruninjaman commented 3 years ago

@sharp-dev simple and worked, thank you!

JJGadgets commented 3 years ago

I'm having the same problem now, except I don't have OneDrive or Dropbox installed (LTSC force removed, I don't have Office) I've checked RTSS, Steam, MSI Afterburner, OBS, Discord and they all don't have any PrintScreen keybinds binded. My error window also doesn't show the conflicting app. Any ideas?

kgnfth commented 2 years ago

i had the same issue with onedrive conflict

what i did was, i closed sharex, then i hit prt sc on my keyboard which i got a onedrive window telling me to save screenshots to onedrive, i hit cancel, then i open sharex, everything is fixed

sorry for my ugly motha focka english

farmeunit commented 2 years ago

@sharp-dev Definitely has the simplest answer and it works. Realistically, ShareX should have the ability to counteract this or at least ask the question during install if that is an option for people instead of just throwing an error. At least check and see if it's set and tell people. Considering OneDrive is now in every single Windows install...

Aholicknight commented 2 years ago

Wish sharex SAID which process is causing the conflict...I get the pop-up and OneDrive is closed..

farmeunit commented 2 years ago

The answer is in the thread. Even if OneDrive is closed, the hot key is active for PrntScrn.

On Thu, Oct 14, 2021 at 8:31 PM Aholicknight @.***> wrote:

Wish sharex SAID which process is causing the conflict...I get the pop-up and OneDrive is closed..

โ€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ShareX/ShareX/issues/1112#issuecomment-943909240, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5RL5C3RHAHYIT3XZHINRDUG577XANCNFSM4BUFJAKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Shane Farmer / ยซECOยป Cavendar Email: @.*** Website: http://www.farmeunit.com Clan: Elite Covert Operations @ www.ecoclan.net

"It's not dying I'm afraid of. It's how I'm going to die that scares me."

Hermholtz commented 2 years ago

@Jaex so if you could add the solution to the dialog message, that would be much easier for people to deal with it. Or a clickable link maybe? Thanks.

  1. Exit ShareX. Usually you need to right click the ShareX tray icon and select "Exit".
  2. Go to OneDrive Settings-Backup and uncheck "Automatically save screenshots I capture to OneDrive". Click OK.
  3. Press the PrtSc key.
  4. OneDrive will show a popup window asking if you want to use it for screenshots, click "No thanks".
  5. From now on it will unhook the PrintScreen key and ShareX can be fully used without further warnings.

This problem is not specific to ShareX, every app that wants to use PrtSc has the same issue. You may also encounter it if you're running another screen capturing tool at the same time as ShareX. Both cannot handle the PrintScreen key simultaneously.

Aholicknight commented 2 years ago

@Hermholtz bro, this issue has been closed since October 21st, and to fix the problem, I use Startup Delayer to delay OneDrive from opening first and let ShareX open first.

Hermholtz commented 2 years ago

I'm glad you sorted that out. I think using Startup Delayer is a hack, not a proper solution, for example I don't want to introduce it in my system.

Also, it's not just about you, it's about all users who can deal with this easier if the error message in ShareX is more informative as suggested above. Hoping to get some attention from @Jaex, so thanks for making noise.

Aholicknight commented 2 years ago

Nothing in this thread helped me. On random occasions, OneDrive or DropBox would take control. Here's what I did to permanently stop the problem.

The Solution: Disable auto startup on OneDrive and DropBox. Then set up Scheduled Tasks in Windows to launch OneDrive and DropBox 1 minute after startup (if you have a SSD). If you're running an older HDD, 3-4 minute delays might be better.

The instructions for delaying OneDrive are well very documented here.

DropBox is the same process, except it uses the following Program location: "C:\Program Files (x86)\Dropbox\Client\Dropbox.exe" Argument: /home Screenshot: i.imgur.com/OkypKDx.png

you can also use this @Hermholtz and then you don't have to use a third party program

Bluscream commented 2 years ago

I'm glad you sorted that out. I think using Startup Delayer is a hack, not a proper solution, for example I don't want to introduce it in my system.

Also, it's not just about you, it's about all users who can deal with this easier if the error message in ShareX is more informative as suggested above. Hoping to get some attention from @Jaex, so thanks for making noise.

jaex doesnt use github anymore

Jaex commented 2 years ago

jaex doesnt use github anymore

I'm using GitHub and reading every single message.

Bluscream commented 2 years ago

You rarely respond to any bug report/feature request tho

Jaex commented 2 years ago

Because everyday so many people opening new report/feature requests (this includes email, Discord and other places not just GitHub) and I'm one man team. I'm working in this project in my free time and I don't have time to respond to every single requests. So if issue is critical then more likely I respond to those.

Madac1 commented 1 year ago

Alternatively if you have troubles, you can disable "Automatically save screenshots I capture to OneDrive", press "Ok", then enable it again, press "Ok", and disable it again and press "Ok". Works 100% of the times.

Aholicknight commented 1 year ago

Alternatively if you have troubles, you can disable "Automatically save screenshots I capture to OneDrive", press "Ok", then enable it again, press "Ok", and disable it again and press "Ok". Works 100% of the times.

@Madac1 necroposting so hard lol

tolga-balci commented 1 year ago

@tikkatek 's solution is the only solution that worked for me.

Hermholtz commented 1 year ago

@Madac1 necroposting so hard lol

just unsubscribe and be done.

InteXX commented 6 days ago

In my case it was the recently-installed latest version of Dropbox. Here's how I fixed it:

  1. Exited ShareX
  2. Pressed Alt+PrtScrn
  3. When prompted by Dropbox, selected No (don't sync screenshots)
  4. Restarted ShareX

There was no more hotkey conflict after that.