Skip to content

Instantly share code, notes, and snippets.

@nicolasparada
Last active October 16, 2022 15:40
Show Gist options
  • Save nicolasparada/44aa3a07305e8f7899ccd120d14e7ab6 to your computer and use it in GitHub Desktop.
Save nicolasparada/44aa3a07305e8f7899ccd120d14e7ab6 to your computer and use it in GitHub Desktop.
Switch desktop in Windows 10 with three fingers gesture. Working on HP Spectre x360 with Synaptics.

Gestures

Virtual key codes:

  • 3 keys: 0x33
  • Ctrl key: 0x11
  • Windows key: 0x5B
  • Left arrow key: 0x25
  • Right arrow key: 0x27

Switch virtual desktop: Ctrl + Win + Left or Right

  • Switch to the left virtual desktop: 0x33115B25 (856775461)
  • Switch to the right virtual desktop: 0x33115B27 (856775463)

Editing the registry

  • Page Down: HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTPPlugIns\SynTP\20
  • Left Arrow: HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTPPlugIns\SynTP\25
  • Right Arrow: HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTPPlugIns\SynTP\26

We are going to edit those entries.

  1. Instead of Page Down we are going to put an undefined (0x3A-40). So, edit the KeySequence and put 0x3A (58). Without this, you will see that Enter is pressed when you switch desktop.
  2. Instead of Left Arrow we're gonna put a combination of Ctrl + Win + Left (Switch to the left virtual desktop). So, edit the KeySequence and put 0x33115B25 (856775461).
  3. Instead of Right Arrow we're gonna put a combination of Ctrl + Win + Right (Switch to the right virtual desktop). So, edit the KeySequence and put 0x33115B27 (856775463).

There is a couple of places were you can edit the entries for three fingers gestures.

In my case, I have an HP Spectre x360, with Synaptics. I can find the configuration at HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTP\Win10\3FingerGestures. There are other possible places, just search for 3FingerGestures key name and check that has ActionId 3, 7, and 11.

Then:

  1. In ActionID3(three fingers swipe right) put 0x19 (25).
  2. In ActionID7(three fingers swipe left) put 0x1A (26).
  3. In ActionID11(three fingers tap) put 0x14 (20).

Finally, you restart your device or run this command in powershell as administrator:

Stop-Service "SyntpEnhService"; kill -name SynTPEnh; kill -name SynTPHelper; Start-Service "SynTPEnhService"
@nicolasparada
Copy link
Author

Credits to chupasaurus and his answer on stackoverflow :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment