Windows – Shortcut to disable touchpad

mouseshortcutstouchpadwindows 8

The computer I use doesn't have a hard button to disable the touchpad.

I typically use a wireless mouse, so I want to easily disable the touchpad frequently.

Other answers posted on this SE tell me to go to Device Settings, but this is too cumbersome. How can I create a short cut to do this?

Best Answer

Based on the answer above I made AHK script that do run this on F2 button:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
#SingleInstance
; #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.

f2::
toggle:=!toggle
if toggle
{
; temp := ComObjCreate("WScript.Shell").Exec("C:\Windows\devcon.exe disable @ACPI\ALP0017\4*").StdOut.ReadAll()
Run C:\Windows\devcon.exe disable @ACPI\ALP0017\4*,,Hide
; MsgBox %temp%
}
else
{
; temp := ComObjCreate("WScript.Shell").Exec("C:\Windows\devcon.exe enable @ACPI\ALP0017\4*").StdOut.ReadAll()
Run C:\Windows\devcon.exe enable @ACPI\ALP0017\4*,,Hide
; MsgBox %temp%
}
return
Related Question