Confirmed to work in the latest build of windows:
- Use 4 fingers on touchpad, place them gently on touchpad together and slightly move them to left or right; Which causes the virtual desktop to be switched.(like windows key + tab). Takes some time getting used to but in the end you will end up creating even more virtual desktops for yourself.
- Use 3 fingers on touchpad with same gesture to switch between apps(like alt + tab)
Remember though that in order for the new gestures to work, you have to install a windows 10 compatible touchpad driver, which is probably obtainable through windows update.
If not, you can manually update your touchpad driver via device manager(right click and press update)
Sometimes when you are trying to send modifier keys (win/ctrl/alt) and the triggering string has modifier keys as well, you need to wait for the triggering keys to be released, or they will affect the replacement string as you are finding out.
Try using KeyWait
to accomplish this. Notice we are now using hotkey syntax vs hotstring
#LAlt:: ; switch to next desktop with Windows key + Left Alt key
KeyWait LAlt
SendInput #^{Right}
Return
#LCtrl:: ; switch to previous desktop with Windows key + Left CTRL key
KeyWait LCtrl
SendInput #^{Left}
Return
For purposes of switching desktops the above worked for me.
On other occasions, there are times when even this approach doesn't work, and there is another possible solution. Instead of key waits like these...
KeyWait LAlt
KeyWait LCtrl
...replace with the corresponding one of these keystrokes to clear the state of the key:
Send,{LAlt Down}{LAlt Up}
Send,{LCtrl Down}{LCtrl Up}
Best Answer
What you need is as follows: