2

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?

1
  • 1
    most touchpad drivers allow you to automatically disable the touchpad whenever it detects an external mouse has been plugged in Apr 26, 2015 at 6:23

4 Answers 4

2

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
1

Use Devcon in a batch script to disable and enable devices , the same way you would be able to do it in the Device manager.

Devcon DL http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q311272 (now in both 32bit and 64 bit 78K zip file)

I do not know for a fact this would work in windows 8, but there is no reason to believe it would not. Because I am admin on my computer, I do not know how much stuff you would have to do extra to do it with permission (run_as). Plus there are ways to use the tasksheduler to gain higher permission, not covered here.


You must have the same privelages to control the item with devcon as you would to control it with the device manager.

Tutorial:
Look in the device manager for the device you wish to disable/enable, and disable and enable it there now, to see how it would react, the time it takes to change state and all.
Right Click on the device and look in the Properties Details tab for the devices Hardware Ids.

Place the devcon.exe into a location that is accessable, either in system32 or the enviroment path or the start-in location for the Cmd prompt. Or CD to that location.

Simple use of devcon to discover the device ID that it recognises
Open up a CMD prompt
use >Devcon /Find *
Add in things to the wildcard that reduce the list, specific to your device.
>Devcon /Find *3034*

Stick with the wildcards, but add enough of the ID to where the device is found, and only the one device is ever found.

While still playing around in the CMD, apply the status , enable and disable to the wildcarded device name you have discovered.
>Devcon /status *3034*
>Devcon /enable *3034*
>Devcon /disable *3034*

Disclaimer: Of course make sure your not going to disable something important, because you would be royally shut out. Using wildcards makes it easy to select an item, the ramifications being disabling the wrong thing could stop you from proceeding.

Now you could just toss that into a shortcut, by pasting that in any old shortcut that it could find that program from.


Make a toggle batch, this is a cut down batch I use to disable the net adapter, I also put sound playing in to identify what occurs (cut out too).

echo OFF
cls

DEVCON.exe >"%USERPROFILE%\Local Settings\Temp\DeviStatus" status *811A1043*  
FIND /I /C "RUNNING" "%USERPROFILE%\Local Settings\Temp\DeviStatus"
IF %ERRORLEVEL% GTR 0 GOTO NOTRUNNING

ECHO  driver is probably running disable it
DEVCON.exe disable *811A1043*

exit

:NOTRUNNING
echo driver is probably not running enable it
DEVCON.exe enable *811A1043*

exit

I use this method widely to control with onebutton press many device items in my system, with the voice (audio) added to the batch to inform the status of each of the devices. All operated from toolbar icons, all with toggle so it stays one button.
The method disables completly the device (for devices that will disable) just like the device manager, freeing up any memory it would use, and what little cpu it might have used.

1

Instead of going all the way to Device Manager there is a way around for this. If you do not have a touch-pad icon showing in your taskbar, first enable it.

Go to Control Panel -> Mouse -> Device Settings tab. There select either "Static tray icon in taskbar" or "Animated tray icon in taskbar" and apply the change.

Once you have enabled it now when you plug in your mouse double click the touch-pad icon from the taskbar and click Disable to disable the touch-pad. Just make sure to enable the touch-pad in a similar fashion when you are unplugging your mouse otherwise the touch-pad will remain disabled and you will need to plug in your mouse again to enable it.

You can also make the touch-pad icon always visible in the taskbar for quicker access. Click on "Customize..." when you click the up arrow in the takbar and select "Show icon and notifications" from the drop list corresponding to the touch-pad icon. So basically you will need to double click and click Disable and you are done disabling the touch-pad.

The Device Settings tab may look different depending your touch-pad manufacturer. I am just giving a sample of Synaptic's which is a popular touch-pad manufacturer.

enter image description here

1

In Windows 8 and Windows 10, you can set the computer disable touchpad when another mouse is plugged in:

  • Control Panel -> Devices and Printers-> Mouse
  • On my computer, the final tab is 'Clickpad Settings'
  • Check 'Disabled internal pointing device when external USB mouse is connected'.
2
  • This is not "In Windows 8 and Windows 10", it's a vendor-provided feature and doesn't exist for touchpads from other manufacturers.
    – Ben Voigt
    Dec 29, 2015 at 0:52
  • Your answer suggests that your question is a duplicate of superuser.com/q/242118/29943 Furthermore, your question specifies a wireless mouse, so an answer specific to USB doesn't seem to be relevant (wireless includes bluetooth, etc)
    – Ben Voigt
    Dec 29, 2015 at 0:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .