trying to get the Griffin Powermate working with AHKHID, but this is really a hell of a job.
I think I got the most important bits already together:
But I have no idea how to get along here. One of the function I want to assign is the 000001006F1000 (turning the wheel right).
How do I proceed here?
What I got so far:
Code: Select all
Gui, +LastFound
hGui := WinExist()
WM_INPUT := 0xFF
OnMessage(WM_INPUT, "InputMsg")
r := AHKHID_Register(12, 1, hGui, RIDEV_INPUTSINK)
InputMsg(wParam, lParam)
{
Local devh, iKey, sLabel
Critical
devh := AHKHID_GetInputInfo(lParam, II_DEVHANDLE)
If (devh <> -1) And (AHKHID_GetDevInfo(devh, DI_DEVTYPE, True) = RIM_TYPEHID) And (AHKHID_GetDevInfo(devh, DI_HID_VENDORID, True) = 1917) And (AHKHID_GetDevInfo(devh, DI_HID_PRODUCTID, True) = 1040) And (AHKHID_GetDevInfo(devh, DI_HID_VERSIONNUMBER, True) = 8)