News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Disable touch pad

Started by Magnum, November 18, 2012, 02:05:44 AM

Previous topic - Next topic

Magnum

I would like to find out what APIs I will need to turn off the touchpad.

I did a search of "disable device" here and the old forum.

Andy

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

most laptops have an OEM setup program that allows you to disable the touchpad
if you don't have it already installed, likely you can download it from the mfg site

CommonTater

Quote from: Magnum on November 18, 2012, 02:05:44 AM
I would like to find out what APIs I will need to turn off the touchpad.

I did a search of "disable device" here and the old forum.

Andy

Actually... take a look in your control panel, mouse settings... often there's an option to disable the touchpad when a mouse is plugged into a USB port.

If that's not what you want... go to Control Panel -> Device Manager ... find the touchpad on that list... Right Click ->  Properties and select "Do not use this device".


Magnum

I want to do it programatically.

I installed a device driver kit and am working on some code now.

Andy
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

sinsi

Is it a Synaptics touchpad? Some info here but it uses COM.
Other suggestions I found used WMI, possibly even worse than COM  :biggrin:

Magnum

Thanks sinsi. I will see where this leads me.  :t

I tried devcon to disable it, this will be one of those long learning moments.

Andy

4.1. Command set
The Synaptics TouchPad accepts the full standard PS/2 "mouse" command set. This section describes the mouse commands, along with any special properties of those commands as they are implemented on the Synaptics TouchPad:
• $FF Reset
• $FE Resend
• $FC Error
• $FA Acknowledge
• $F6 Set Defaults
• $F5 Disable
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

sinsi

Those PS/2 commands are sent via the OUT instruction, that needs a driver - no in/out from userland.
Apparently devcon has trouble on 64-bit windows, the ddk is supposed to have the source code.
It's just a wrapper for a lot of setup api functions. I will have a look through my iso's for the source.

Magnum

Thanks sinsi.

I have the source code from the Synoptics.

Trying to figure out these messages. I am using Dev C++ which seems like a pretty good program.

16   0   C:\z_keep\SynKit.h   In file included from C:\z_keep\SynKit.h
7      C:\z_keep\Disabler.cpp                    from C:\z_keep\Disabler.cpp
6   20   C:\z_keep\SynWraps.h   comdef.h: No such file or directory.
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

QuoteOther suggestions I found used WMI, possibly even worse than COM

WMI uses COM, so yah - but it's not that bad   :P
Edgar and Erol have both done some WMI examples - if you look in the old forum
also, i use qWord's macros for COM - makes things pretty simple
of course, those guys make everything look easy - lol

Magnum

I installed VC++ since that is what my code is designed for, but it's kinda slow.

I tried to set my source code directory, and it can't even see a .cpp file.  :dazzled:

Then VC loads up a call home prog without permission and changed my default for open asm files.

That's O.K, they did good with XP. :-)

Andy
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

Vortex

Hi Magnum,

You would like to visit Japheth's COM & Assembly page :

http://japheth.de/COMnASM.html

Japheth has a deep understanding of COM, he's an expert of this area.