Open-Shell / Open-Shell-Menu

Classic Shell Reborn.
MIT License
6.88k stars 427 forks source link

Using search bar to type program name sometimes launches wrong program #456

Open billroland opened 4 years ago

billroland commented 4 years ago

Describe the bug I remember seeing a similar report somewhere on the Classic Shell forums but I can no longer find it. Essentially the bug is, if you hit the Start button and type a program name, such as CMD (for Command Prompt) or Calc (for Calculator) and hit enter, Open-Shell sometimes launches a completely different program. For me this is almost always Remote Desktop Connection. I should add that Remote Desktop Connection is my "most frequently used" application and this may play a role.

It appears to me that the list doesn't quite filter in real time. If you type slower or give it a second, it will display the correct entry.

I should add that in many years of using Windows 7 (and Vista before that) did I ever encounter similar behavior from the native Start menu.

To Reproduce Steps to reproduce the behavior:

  1. Click the Start button or hit the Windows key on your keyboard
  2. Type CMD and hit enter quickly
  3. Randomly Remote Desktop will launch instead of Command Prompt.

Expected behavior Command Prompt should have launched

Screenshots Not applicable.

Version:

Additional context There may be a connection to the frequently used applications tracking here, I am not sure.

bonzibudd commented 4 years ago

I've never had this happen but I have some ideas. For whatever reason, it could be triggering a hotkey for the most used program. Under the "Main Menu" tab, change "Shortcuts for the recent programs" to "No shortcuts." If that doesn't work it may be worth disabling recent programs altogether.

billroland commented 4 years ago

I changed that setting to no effect. I've also tried a number of different variations of settings regarding search. It is as if the search filter is just too slow sometimes, by the time I've typed CMD and hit enter, it is only starting to show partial matched programs. On Windows 7 with the native start menu this was never once a problem. It is frustrating because I frequently open programs by just hitting the start button and typing in cmd or calc or whatever and hit enter. On Windows 7 with the native start menu this always worked perfectly but on Open-Shell it is about 75% fine and 25% of the time will open some other random program.

By the way I found the old thread where another user was complaining of the same thing. Doesn't look like there was ever any resolution unfortunately: http://www.classicshell.net/forum/viewtopic.php?f=12&t=2301

XenHat commented 4 years ago

Make sure you do not have the mouse hovering over the menu, as micro-movements or mouse sensor jitter can move the cursor, which would in turn select the menu entry under the mouse. As you press enter, that entry is launched.

Another commonly confusing behaviour is the fact that what is selected "first" (at the top of the list) will change based on what you ran last. It appears to be a weighted list and requires a few launches to update itself. See attached video.

Demonstration Video

billroland commented 4 years ago

I can rule out the mouse being an issue because all I am doing is using keyboard commands; Windows key, type cmd and hit enter without touching the mouse.

All I can really say for certain is about 25% of the time when I type cmd and hit enter, it opens Remote Desktop Client instead. There is really no reason that I can discern why "Remote Desktop Connection" (file name mstsc.exe) should be at the top of a search list where the term searched was CMD. I'm not sure how it could realistically believe that's even a partial match.

XenHat commented 4 years ago

Could you provide a video evidence to make reproducing this easier?