Recently I've been trying to rebind the 3-finger gestures of my Logitech Wireless Trackpad to switch between desktops in Windows 10. The code I used was the following:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
XButton1::SendInput {LCtrl down}{LWin down}{Right}{LCtrl up}{LWin up}
XButton2::SendInput {LCtrl down}{LWin down}{Left}{LCtrl up}{LWin up}
#F::Send {LWin down}{Tab}{LWin up}
However, when I press the buttons on my mouse I use for Browser_forward and Browser_Back, the mouse switches between desktops as well. Can you force AutoHotKey to only use the trackpad for it's gestures? If so, how?