trackpad detection?

Get help with using AutoHotkey and its commands and hotkeys
Skrell
Posts: 166
Joined: 23 Jan 2014, 12:05

trackpad detection?

02 Sep 2015, 12:01

Does anyone if there is a way to detect if my windows 8.1 machine is currently using the trackpad or a mouse?
blza
Posts: 18
Joined: 01 Sep 2015, 09:23
GitHub: blza

Re: trackpad detection?

04 Sep 2015, 05:25

you can check this particular library if it will be of any help for you
http://www.autohotkey.com/board/topic/3 ... functions/
blza
Posts: 18
Joined: 01 Sep 2015, 09:23
GitHub: blza

Re: trackpad detection?

04 Sep 2015, 05:29

If it will not help you can google 'ahk two cursors', you will find a bunch of scripts that determines the presence of two pointing devices and handles commands coming from them differently.
Skrell
Posts: 166
Joined: 23 Jan 2014, 12:05

Re: trackpad detection?

04 Sep 2015, 07:38

1. Thank you both of your suggestions seem like interesting ones!
2. However, am I correct in thinking that both of your solutions will essentially target specific hardware devices and not be a generic solution that can detect either "any mouse" or "any trackpack" presence?
blza
Posts: 18
Joined: 01 Sep 2015, 09:23
GitHub: blza

Re: trackpad detection?

04 Sep 2015, 13:56

Skrell wrote:1. Thank you both of your suggestions seem like interesting ones!
2. However, am I correct in thinking that both of your solutions will essentially target specific hardware devices and not be a generic solution that can detect either "any mouse" or "any trackpack" presence?
Can't tell you. What's the purpose of detecting that events come from trackpad? I think you can always make some kind of setup for your script. Like if you want to process only trackpad movements or clicks you can make a gui and ask user to click particular button with trackpad. After it you can save some kind of device ID to ini or registry and next time you will know what poiting device a user just hmm... used :)

Return to “Ask For Help”

Who is online

Users browsing this forum: 2ndprotocol, Ankhy, Bing [Bot], boiler, FanaticGuru, frosse, JoeWinograd, navmesh, RubbeH, Sabestian Caine, teadrinker, tuaantuaan123 and 50 guests