slow windows desktop keyboard shortcuts

52

15

I've got a couple of shortcuts on my desktop and on some of them I've configured the "Shortcut key" to a keyboard combination. For example I have a shortcut pointing to d:\documents\todo.txt and I've set Shift + Alt + T. This naturally opens up using notepad.

Double-clicking on the icon always opens up the text file immediately. Using the keyboard shortcut though is sometimes very (5-10 seconds) slow. Note that during that time CPU utilization does not rise.

This happens to all my machines (both old and new ultra fast boxes) in Windows XP (various versions) and Windows 7.

There are tons of questions about this but no solution.

Is there an explanation and solution to this problem?

Edit: The behavior is not consistent. I have 30 desktop shortcut and 5 of them have keyboard shortcuts assigned. I'm not interested in software alternatives for this Windows functionality. I want to know what the problem is and how to solve it.

cherouvim

Posted 2012-05-21T09:39:05.337

Reputation: 819

This happens for a new reason on Windows 10. Anyone have a fix? – VoidStar – 2015-08-24T00:50:35.047

It's a shame that this issue is known for quite a while and still Microsoft hasn't fixed it. Still "Calculator", "Store", "Alarm" appear as suspended background processes for NO reason, despite the fact that I had turned off everything in the "All Settings" => "Privacy" section, including "Background apps". So annoying... – informatik01 – 2015-11-06T16:17:54.257

6

I'm late to the party, but I recently encountered the same issue. I coded a quick-and-dirty utility to locate processes that aren't responding to the hotkey request message. I would post the code here as an answer but I can't because the question is protected and I don't have the required rep (although my profile claims that I have 101 and it only requires 10). I wrote a blog post about it where you can get the code. My apologies for the pseudo-spam. I'll post the code here as an answer when I have the required rep.

– Bob Mc – 2016-01-01T02:32:45.633

Does this happen when booting in Safe mode? If not, then try turning off your antivirus or other security products. If this helps, tell us which product caused this. – harrymc – 2013-07-30T15:14:53.437

@Psycogeek: Good observation but D: or a sleeping drive doesn't have anything to do with this. – cherouvim – 2013-08-04T05:10:35.760

If I was observing a little closer :-( , I would have noticed that your shortcuts are working fine. It is only the Keyboard shortcuts that have the delay. None of your "windows" own Key commands are slow right? – Psycogeek – 2013-08-04T05:32:42.517

In safe mode this does not seem to happen although I've experimented for only 10 minutes. I do not run any antivirus or security products. – cherouvim – 2013-08-05T07:15:04.673

1I killed "SetPoint.exe", Logitech's mouse parameters software, and it resolved my problem – Goldorak84 – 2013-09-23T15:56:45.113

Answers

54

The original question deals with Windows 7, but it's happening now for new reasons in Windows 10. Here's a general answer that deals with both situations.

The general problem

There's an excellent explanation of the problem and its cause at the 2012 MSDN post Why is there sometimes a long delay between pressing a hotkey for a shortcut and opening the shortcut?

Executive summary: before launching a program via its shortcut key, Windows first polls all currently running programs and asks "Is this your shortcut key?" If so it switches focus to that window rather than spinning up a new copy of the program.

The problem happens when a window somewhere refuses to answer the question. This can be a program that's generally non-responsive for some reason, though it can also happen for other reasons (see below). Windows waits 3 seconds before muttering "jerk" under its breath and moving on to the next window to ask it the same shortcut question.

Finding unresponsive programs

  1. Start Windows, then before opening any other programs try a shortcut key. Do you experience a delay? If so, go to step 3.
  2. Launch any other programs you typically run. Do you experience a delay? If not, wait until you do.
  3. One by one, stop each interactive program; cycle through them with Alt-Tab to be sure you've got them all. After stopping each one, see whether the shortcut delay has gone away.
  4. Still have a delay? Do the same thing with the icons in the taskbar's notification area (aka the "system tray"): right click and exit, checking for the shortcut delay after each one. You might need to expand the notification area to see all of those icons.

Now that you know your culprit, you get to decide: is that program worth the delay it causes? For example, Adobe Creative Cloud has sometimes caused problems for me, so I just tell it not to run when Windows starts. I can still use Illustrator etc. without it running.

If you can't live without the program, either live with the shortcut key delay or, as "user 99572 is fine" suggests, try a macro program like AutoHotKey.

Windows 10: Action Center

Windows Action Center can also cause the delay. (This might be a problem in Windows 8 too; I skipped from 7 to 10). Whenever you see this:

enter image description here

it means the Action Center has system notifications for you to review—which also causes the shortcut key delay, even though the Action Center isn't non-responsive per se.

Click the icon and clear the notifications, then the icon will look like this, and Action Center should no longer cause a shortcut key delay:

enter image description here

If a notification comes up repeatedly and you find it unhelpful, right click it and tell Windows to turn off notifications for that application.

BUT... sometimes Action Center can cause problems even if no notifications are waiting. Even with no notifications showing, I've often cleared up this problem simply by opening and closing Action Center. You can do this quickly with the [Windows]-A shortcut key combination.

Windows 10: unresponsive background processes

Sometimes a background process can cause this problem too. Two in particular are:

  • Calculator
  • Store

There might be others culprits as well. The significant thing is that these are foreground applications that, for some reason, appear as background processes even though you might not have actually run them. This problem might happen with other apps, and might be limited to Metro apps (TBD).

You can use some or all of the following techniques to eliminate these processes:

  1. Kill them manually with the task manager whenever you notice them.
  2. As discussed in harrymc's answer to this related superuser question, turn off specific background apps at Settings > Privacy > Background Apps. Not all apps can be turned off in this way.
  3. As discussed in Helen's answer to the same superuser question as above, disable Superfetch.

After using techniques #2 and #3, these rogue background processes no longer appear on my computer.

New problem in Windows 10 build 1809 (2/2019): Settings App

This Windows build has introduced a new and pernicious shortcut inhibitor. As soon as you start Windows, go to task manager. You have the problem if you see Settings running as a background task:

settings running as a background process

If you kill this task, shortcut keys will be fast again, but the Settings app will reappear a while later, re-introducing the problem.

Other...

This 3-second timeout probably doesn't cause every keyboard shortcut delay.

One one of my laptops, whenever Adobe Creative Commons is running in background I sometimes experience a delay lasting as long as 30 seconds before launching an app. That's 10 times the timeout Window uses before giving up on a non-responsive process, so something else must be going on in this case.

Andy Giesler

Posted 2012-05-21T09:39:05.337

Reputation: 1 051

3If anyone is a Win10 "insider" you can send this as a feedback via the feedback tool. – VoidStar – 2015-08-24T00:53:37.670

1Windows 10 is there and Calc issue is together :( – kokbira – 2015-08-31T17:57:58.667

Thanks for the info. I am on Windows 10 (on Windows 8.1 - there were no such issues) and for me it was the suspended Calculator process that seems to cause the delay. – informatik01 – 2015-09-27T18:36:27.930

10Just wanted to confirm that 'Turn off specific background apps at Settings->Privacy->Background Apps' did indeed speed up global hotkey speed. BTW I got there by typing in 'Settings' from the Start button. When I saw the list of Background Apps, I was a little shocked, I had no idea they were there, since I still use my computer like a PC, not a tablet. I turned off the entire list, and things became much more speedy. BTW I also have a SSD drive, turning off Search indexing offered no noticeable speed increase. Great suggestions. – sthede – 2016-05-05T16:38:12.397

sthede, it may be unrelated at all to those background apps. I figured that if I turn them off everything was suddenly fixed and shortcut keys were fast again. However, a couple of hours later they became slow again. I figured that all it takes is to open the Windows "Settings" window and that fixes the shortcut keys for a couple of hours. – omer – 2017-07-14T13:16:31.633

Since my last Windows 10 update, all my links keyboard shortcuts were broken. The only way I found to resolve the issue was a third-party shortcut manager, e.g. Clavier+, http://utilfr42.free.fr/util/Clavier.php, and they open faster, as well!

– DrMoishe Pippik – 2017-07-18T17:43:09.620

2Currently on Windows 10, version 1709 & 'Turn off specific background apps at Settings->Privacy->Background Apps' did the trick; I turned off unnecessary apps & now desktop hotkeys always open up the exes immediately. Thanks for your suggestion. – Dark Knight – 2017-11-16T07:31:41.887

Turning off background apps worked for me, and yes this is still a problem in 2018 :( – Captain Hypertext – 2018-06-13T18:58:57.623

22019 here. Killing the Settings app did the trick for me. – AngryHacker – 2019-03-12T17:27:01.553

@AngryHacker, did the background Settings process re-appear later? I kill it every time I start Windows, but before very long it's back in the task list again. – Andy Giesler – 2019-03-13T00:26:05.523

@AndyGiesler Yes, it does. I was planning on creating a batch file that taskkill /IM Settings that runs every hour. Just haven't gotten around to it. – AngryHacker – 2019-03-13T04:22:17.883

1I had to disable/re-enable Bluetooth to fix that. – Salah – 2019-04-24T10:46:09.457

1@Salah Brilliant! I disabled Bluetooth and the problem remained. I was skeptical that re-enabling it would make a difference, but it did. The Settings app no longer lingers in the background. Thank you! – Andy Giesler – 2019-04-24T14:31:19.960

@Salah Sadly, this was only a temporary fix for me. The Settings app still appears eventually. – Andy Giesler – 2019-04-25T15:17:25.717

@AndyGiesler Same for me, so I have to disable/re-enable like 3 times a day. So, unfortunatelly, I think it's because Bluetooth somehow "crashes" in the background. – Salah – 2019-04-25T15:23:05.973

@Salah Since I don't use Bluetooth, I thought disabling it altogether might help. But...no. As before, after a while the Settings app appeared in the background. :-\ – Andy Giesler – 2019-04-25T22:51:05.027

For me it was the 'Settings' app that causes the ugly delay – leokom – 2019-07-03T06:20:30.800

For me too, the Settings app was te culprit. Thanks a lot! – johey – 2019-12-29T19:04:01.253

Brilliant write-up! Win10 in 2020 here. The Settings app was the culprit. Works perfectly now. Could you extend your answer to explain that it is possible to permanently disable it? I overread the section where you describe how it's done for Calculator and the Settings section reads like killing the process is the only (non-permanent) way to do it. Thanks! – Cerno – 2020-01-28T12:38:34.940

@Cerno Unfortunately, so far I and others have been unable to permanently disable it. And even if you stop it when you first log in, it'll eventually appear in task manager again. Very frustrating... – Andy Giesler – 2020-02-06T19:50:51.500

@AndyGiesler I don't follow. Are we talking about permanently disabling the Settings background process? You can do that via Settings > Privacy > Background Apps > Settings. I did it and so far it seems to have solved the issue permanently. I have been using it for a few days now and it definitely survived a reboot and did not come back over time either. The keyboard shortcuts work like a charm now. – Cerno – 2020-02-07T09:32:47.730

@Cerno Very interesting. My Background Apps control panel lets me disable Calculator and many other things, but not Settings. The list goes right from "Print 3D" to "Sketchbook". What version of Windows are you running? I'm on Windows 10 Pro 64-bit. – Andy Giesler – 2020-02-08T21:21:47.893

@AndyGiesler Weird. For me the setting is sitting right between Print3D and Snip & Sketch. It's Windows 10 Enterprise, maybe that's the reason. Maybe there is a way to enable the setting in Win10 Pro as well via registry or something. – Cerno – 2020-02-10T12:07:20.607

17

If you're on Windows 10, try killing "Application Frame Host" (ApplicationFrameHost.exe). This made the delay disappear on my system.

Note that if you kill this process, it will close any modern apps you have running.

VoidStar

Posted 2012-05-21T09:39:05.337

Reputation: 269

2Welcome to Super User. Can you provide any more detail? What are some possible side-effects of killing this executable? Why is this program creating problems with shortcuts? – I say Reinstate Monica – 2015-08-24T02:45:49.357

2This is the modern app host. If you kill it, you can't run modern apps. Most people don't care about this anyway. It causes a problem because it listens to all possible shortcut registrations for some reason, it didn't do that before Win10. Windows has always seemed to deal with multiple competing shortcut registrations badly... it leads to a delay. Every answer in this thread is related to such competing registrations in one way or another, but Windows 10 introduced ApplicationFrameHost.exe as a new culprit. – VoidStar – 2015-08-24T04:26:09.883

1Any ideas how to solve this? I have to kill that **** process several times per day and I'm not using any 'modern' apps. – icl7126 – 2015-12-15T12:15:10.313

@VoidStar it's the only solution worked for me, thank you. W10 is sometimes odd, I will report in through feedback programm, everybody, do the same and this bug will be fixed. – Alex Zhukovskiy – 2016-03-17T21:47:52.613

@icl7126 you can write a task that will kills this process. – Alex Zhukovskiy – 2016-03-17T21:48:27.020

4@AlexZhukovskiy save this as .bat file: Taskkill /IM ApplicationFrameHost.exe /F. But I found another solution: disabling SuperFetch fixed all problems and now shortcuts works even when this process is running. (you can find SuperFetch in the list of services as SysMain) – icl7126 – 2016-03-17T21:56:47.117

@icl7126 wow, I was mocking people who disable standard windows features (such as SuperFetch), for their pseudooptimization, but now it seems that it's me who was a dumb. Thank you for information. – Alex Zhukovskiy – 2016-03-18T07:39:30.173

@icl7126, Superfetch? You're using spinning disks? – Pacerier – 2017-01-29T13:49:21.660

9

My personal experience was that there was a program that was delaying Windows' handling of the hotkey. For myself it was Steam, for Andreas it was Akamai.

To diagnose which application is responsible simply close an application and try your hotkey again. Once you figure out who the culprit is, decide whether it's a service that you can deal with not running at all times.

I know this is a fairly old question, but after not finding an answer I stumbled upon the solution and felt the need to share it with the community.

bdcon

Posted 2012-05-21T09:39:05.337

Reputation: 91

6I have this problem in Windows 10 now. "Application Frame Host" is the culprit. – Peter Quiring – 2015-08-14T13:00:16.510

1FWIW, Adobe Creative Cloud has caused this problem for me, sometimes introducing as much as a 30-second delay to every app launch. However, I'm now experiencing the problem under a fresh Windows 10 install with Adobe CC disabled. Investigating that problem independently... – Andy Giesler – 2015-08-14T14:58:12.757

For me it was setpoint.exe, logitech's mouse software – Goldorak84 – 2014-03-24T16:56:41.803

5

The problem might have some to do with how Windows finds these shortcuts. Any reasonable person might expect that they store the shortcut data in the registry, the registry resides in RAM, and they put everything else in there. :-)

Instead the key shortcuts for .LNK and .URL are inside the shortcut itself.

As you can see in the picture, after trying to trace down where it was in the registry (it's not), I found the change in the shortcut own data itself.

There are 2 major locations where this data is scanned from, anywhere in all of the Start menu, and via the desktop folder.

When people find that removing some program, or some web program, "fixes" the problem, maybe it has to do with items, or mappings, or some unapproved stuff in the Start menu or the desktop?

After realising the method used, it was easy enough to take the advice of using another method other than windows, to do the same things.


The Notepad shortcut method used, is going to add microbes of delay also. A shortcut to a text file itself, that will eventually open a Notepad, will get to go through a fun process. Find the class bounce around in the registry, find the associated program, open that program, and pass in that parameter.

Most program shortcuts can have quoted whole paths "C:\Windows\notepad.exe", instead of using environment variables to eventually locate the program, in the many environment variable paths. Many programs like to stuff their program path into the environment variable path, they have even broken the "search path" there by making the line to long.

Most program shortcuts can also have quoted parameters placed after the quoted program path "d:\documents\todo.txt". This has the computer finding the file direct without searching or guessing, and passing the file to it immediately. (The quotes are only necessary when there are spaces.)

If you want to see speed, try it as "C:\Windows\notepad.exe" "d:\documents\todo.txt" and cut out the middleman. Create the shortcut for the program instead (notepad), and add a parameter for the .TXT file into the program shortcut. OK it's like DOS now. :-) But faster.

To check the environment variables (which is only for specific issues), go to "System", and in the "System Properties", in "Advanced" bring up the "Environment Variables" and look at the mess in the PATH variable.

Psycogeek

Posted 2012-05-21T09:39:05.337

Reputation: 8 067

Isn't this answer actually wrong? – Pacerier – 2017-01-29T13:48:27.523

1@Pacerier , which aspect of it did you concider to be incorrect? does it "solve" the original question? no accept. Does it reflect all the problems that exist with the shortcut system? , no. Is it about XP and win7? yes , was the original question about the windows 10 additional problems ? NO it is not, but it is cool that was covered. – Psycogeek – 2017-01-31T18:59:28.597

2

The culprits for me are the "Movies & TV" and "Photos" app. Once I killed this 2 apps in task manager, my keyboard shortcut launched without the 3 seconds delay. Yes, I have to kill both.

I decided to uninstall both apps since I don't need them. To learn how to uninstall built-in apps, I have followed this page successfully:-

http://www.howtogeek.com/224798/how-to-uninstall-windows-10s-built-in-apps-and-how-to-reinstall-them/

AhYap

Posted 2012-05-21T09:39:05.337

Reputation: 21

1

For me (Windows 10 x64) helped disabling SuperFetch feature. This service (called SysMain in Services) is causing start of the Application Frame Host process several times per day and this process is responsible for slow shortcuts.

icl7126

Posted 2012-05-21T09:39:05.337

Reputation: 401

1

I cannot reproduce your problem and do not remember having it on any of my computers. I do not notice any difference to opening a shortcut by clicking. I have only very few of these shortcuts, though, 2 tops.

  • Is there a software that listens for hotkeys that is installed on all your rigs? Maybe this causes shortcuts to be recognized slowly? It could be any app with global hotkeys. You'd have to manually close them one by one to see if it makes any difference.
  • How many shortcuts do have? 10, 20, 30? If you have many, it could also mean slower reaction time.

To speed things up: You could try using a third party software for managing your shortcuts (like AutoHotkey, PhraseExpress or Clavier+ (all of which are available as aportable app). Hopefully, they will work faster. I am using them anyway and keep them on a flash drive to use on multiple computers.

user 99572 is fine

Posted 2012-05-21T09:39:05.337

Reputation: 3 173

Thanks for the answer. I've updated my question with some data. – cherouvim – 2012-05-21T13:32:18.323

1

I had a delay for 2 seconds, starting Notepad using Ctrl+Alt+N that I use to have as its shortcut key. The solution to get rid of the delay was to disable Akamai Netsession client.

To see if this is your problem, you can open Windows Task Manager, and select the "Netsession_win.exe", rightclik and select "End process tree". (There are two Netsession entries, one of them probabli spawning the other - selecting end process tree kills them both).

Now try your shortcut keys again.

If they are quick and nice now, make the change permanent either by uninstalling Akamai NetSession Interface from Add Remove programs in the control panel, or by disabling it in msconfig (so that it doesn't start automatically).

This is how to disable it by opening msconfig:

  • Start menu / Run / write "msconfig" / Enter.
  • Switch to the "Startup" tab.
  • Uncheck the entry with the name "Akamai Netsession Client".

However I'd uninstall it, and only install it again if it is needed. It's just a download agent that some companies use for downloading their software (I believe Microsoft and Adobe has used it).

This was the location of the akamai program:

c:\Users\myname\AppData\Local\Akamai\netsession_win.exe

Hope this will help out.

Best regards, Andreas

Andreas Jansson

Posted 2012-05-21T09:39:05.337

Reputation: 123

1Thanks but I don't have anything Akamai related in my PCs. – cherouvim – 2013-06-17T13:12:43.590

1

It might be some other program on your computer then. I had to go through almost all running services and processes on my computer – stopping the unnecessary ones – one by one, until I found the one (Akamai) that caused the delay. Windows has to "ask" every running process "Will you handle this shortcut key?", and if the process hesitates, and don't answer, it takes a few seconds. I found that explanation here: http://blogs.msdn.com/b/oldnewthing/archive/2012/05/02/10299709.aspx Reading the page again, it might be processes only – services has no windows. Have a look at startup tab in msconfig

– Andreas Jansson – 2013-06-18T06:31:33.253

1

As this does not happen in Safe mode, and as I myself have never encountered such a slow-down, some product that you have installed must be causing the problem.

I suggest using Autoruns to turn off startup programs in bunches, until you narrow it down to the one that is causing it.

You could also examine your installed products using Revo Uninstaller Freeware and uninstall products that you don't need any more or that you don't like. Google carefully for products that you don't know.

I would also suggest, for the future, to install some security suite. There are lots of free antivirus products, as well as free anti-adware, and not having some of them is just asking for trouble, same as not locking your door at night.

I am not suggesting that your computer is infected, but that is one possibility for such a weird behavior, so full-scans using several well-known antivirus products would still be a good idea. See How to Clean An Infected Computer.

harrymc

Posted 2012-05-21T09:39:05.337

Reputation: 306 093

1

The reason for this is DDE. I don't know the specific technical details this problem generally boils down to a message queue meltdown.

Some applications are not expecting/able to handle DDE messages on an interrupt basis and so when something they ask for arrives or something is broadcasted to them they don't provide an instant response because they are not waiting on the queue. Things get backed up and everything with a dependency on DDE takes forever. In extreme cases even in command windows sometimes you can see letters you type will be lagged for the same reason.

The only way I know to avoid this problem is to avoid running certain applications over time and by trial and error you will notice when running cause delay. There might be a way to tweak things such as changing timeouts or isolation of DDE broadcast domains or tools to look into DDE but I am clueless on this topic.

disk eater

Posted 2012-05-21T09:39:05.337

Reputation: 81

0

I made a simple tool to execute hotkey shortcuts, which bypasses the Windows shell.

You can find it here: https://github.com/rustyx/myhotkey

I use it myself to rapidly start things like cmd.exe and bash.exe.

rustyx

Posted 2012-05-21T09:39:05.337

Reputation: 461