How to disable touchpad when external mouse is connected

Solution 1:

This doesn't apply to Windows 7, but Windows 8 & 10 have a built in option to disable the touchpad when a mouse is connected.

Open the Windows settings app (Ctrl+I), navigate to Devices → Touchpad, and uncheck Leave touchpad on when a mouse is connected

Leave touchpad on when a mouse is connected