newlooper / VirtualSpace

A Virtual Desktop Enhancement GUI Program For Win10 & Win11
GNU General Public License v3.0
182 stars 12 forks source link

[Alt+Dx] hotkeys no longer work #72

Closed lawern closed 1 year ago

lawern commented 1 year ago

Hi,

Since the update to 22H2 (Windows 11), the Alt+Dx hotkeys to switch desktops no longer work. The log shows the following error messages after startup:

[2023-04-18 17:23:33][INFO] Register Global HotKey [Alt+D1] For "Switch To Desktop 1", Fail {ThreadId:1} [2023-04-18 17:23:33][INFO] Register Global HotKey [Alt+D2] For "Switch To Desktop 2", Fail {ThreadId:1} [2023-04-18 17:23:33][INFO] Register Global HotKey [Alt+D3] For "Switch To Desktop 3", Fail {ThreadId:1} [2023-04-18 17:23:33][INFO] Register Global HotKey [Alt+D4] For "Switch To Desktop 4", Fail {ThreadId:1} [2023-04-18 17:23:33][INFO] Register Global HotKey [Alt+D5] For "Switch To Desktop 5", Fail {ThreadId:1} [2023-04-18 17:23:33][INFO] Register Global HotKey [Alt+D6] For "Switch To Desktop 6", Fail {ThreadId:1}

What could be the reason for this? Before the update everything worked fine. I have also tried to re-register the hotkeys without success. I use the current version 0.2.475.607.

Thank you!

newlooper commented 1 year ago
  1. use Only ALT(MENU) key is not good practice, since it is the default modifier for many softwares( SYSTEM and/or APP )

to check a global hotkey is available or not, use this software HotKeysList, i use it to see effected hotkey in my PC.

  1. if you don't like the default behavior of the ALT key at all, in most case you need some third party software to hook it.
  2. suggestion and solution

❗step1: define a complex(unusual) hotkey combine in VirtualSpace, to avoid conflict or forbidden by system.

eg. Ctrl+Alt+Shift+1 for "swtich to desktop 1"

❗step 2: choose a software dedicated to key mapping ( i personally use PowerToys ), then

Remap shortcuts ALT+D1 => Ctrl+Alt+Shift+1

now, you got your ALT key under control.

newlooper commented 1 year ago

related #66

lawern commented 1 year ago

@newlooper : Thanks, this workaround works for me for now!

mdear-lsn commented 1 year ago
  1. use Only ALT(MENU) key is not good practice, since it is the default modifier for many softwares( SYSTEM and/or APP )

to check a global hotkey is available or not, use this software HotKeysList, i use it to see effected hotkey in my PC.

  1. if you don't like the default behavior of the ALT key at all, in most case you need some third party software to hook it.
  2. suggestion and solution

❗step1: define a complex(unusual) hotkey combine in VirtualSpace, to avoid conflict or forbidden by system.

eg. Ctrl+Alt+Shift+1 for "swtich to desktop 1"

❗step 2: choose a software dedicated to key mapping ( i personally use PowerToys ), then

Remap shortcuts ALT+D1 => Ctrl+Alt+Shift+1

now, you got your ALT key under control.

Acknowledged, I am using PowerToys Keyboard Manager, I click on the "Type" buttons for both the shortcut (Alt-1 in my case) and the remapped combination (Ctrl-Alt-Shift (all left) 1).

I also have PowerToys configured to always run with Administrator's privileges, as per: https://learn.microsoft.com/en-us/windows/powertoys/keyboard-manager

This workaround works acceptably well for me.