Get input device type, or only hook mouse events

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
MPeti1
Posts: 6
Joined: 16 Feb 2018, 12:45

Get input device type, or only hook mouse events

23 Sep 2018, 09:22

Hi!
I've got a new mouse which has 3 buttons which can be rebound with AHK. LControl, XButton1 and XButton2.
Now what I want to achieve is to only do something if the mouse sends LControl.
I have 2 ideas, but non of them seems to be possible:
1. Install only mouse hooks. I tried to achieve it with

Code: Select all

#UseHook, off
#InstallMousehook
on the top of the script, but it still detects LControl's sent by the keyboard. Maybe AHK automatically installs keyboard hooks when it detects I want to hook LControl?
2. get the current input device. But I can't find a solution to do this.

What do you recommend to do?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: DataLife, pgeugene, Rohwedder and 80 guests