I use the A4Tech mouse model WOP-35 (
http://www.a4tech.com/ennew/download%20driver.asp?cmodnum=WOP-35); it has 5 buttons (4 are programmables) and 2 wheels for horizontal and vertical scrolling; the foremost wheel is at the same time the third (middle) button, the rear wheel is only wheel.
AHK has no problem with the five buttons. But neither Windows XP Professional or Vista (32 and 64 bit), nor AHK detect independently the rear wheel. Both wheels scroll vertically, and if I assign horizontal scroll to a wheel with AHK, the other makes the same. Now I'm using Windows XP SP2 (32 bit) and Vista (64 bit) on different computers.
The mouse A4Tech wheel technology is different from that of Microsoft (Logitech and clones). Microsoft mouse has only one wheel that tilts for horizontal scrolling. Windows Vista support is for Microsoft's mouse, not for others.
Micha's AutoHotkeyRemoteControlDLL.ahk script recognizes my mouse but I have not been able to make a functional script that appropriately puts into operation the two wheels. I'm not a programmer

. In panel "Device Description" appears:
1 KEYBOARD
2 KEYBOARD
3 MOUSE
4 MOUSE
Clicking on "3 MOUSE", panel "Device Info" shows:
DeviceID: 2
Buttoncount:2
Samplerate:60
Name:\??\Root#RDP_MOU#0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
USAGE: 2 USAGEPAGE: 1
And clicking on "4 MOUSE", panel "Device Info" shows:
DeviceID: 32
Buttoncount:5
Samplerate:100
Name:\??\Root#*PNP0F03#1_0_21_0_31_0#{378de44c-56ef-11d1-bc8c-00a0c91405dd}
USAGE: 2 USAGEPAGE: 1
Clicking "Register" button, the next information is the same to both of them ("3 MOUSE" y "4 MOUSE"):
"Respond from device" (scrolling foremost or rear wheel, up or down): the result is 4 most of times, but sometimes appears 0 (when appears 0, all next elements are 0 too).
FOREMOST WHEEL (when result from "Respond from device" is 4):
UPWARD:
Flags: 0
BtnFlag: 1024
ButtonData: 120
RawButton: 0
X: 0
y: 0
Extrainfo: 0
DOWNWARD:
Flags: 0
BtnFlag: 1024
ButtonData: 65416
RawButton: 0
X: 0
y: 0
Extrainfo: 0
REAR WHEEL (when result from "Respond from device" is 4):
UPWARD:
Flags: 0
BtnFlag: 1024
ButtonData: 240
RawButton: 0
X: 0
y: 0
Extrainfo: 0
DOWNWARD:
Flags: 0
BtnFlag: 1024
ButtonData: 65296
RawButton: 0
X: 0
y: 0
Extrainfo: 0
I wish to assign horizontal scrolling for foremost wheel (middle button), and vertical scrolling for rear wheel. AHK (via menu item "View -> Key history and script info") recognizes the wheels, but the script, using the detected "virtual key" and "scan code", doesn't function, neither Windows XP nor Windows Vista; notwithstanding Vista offers support for horizontal scrolling. The following are the values detected by AHK:
FOREMOST WHEEL:
Upward: vk: 9F, sc: 001
Downward: vk: 9E, sc: 001
REAR WHEEL:
Upward: vk: 9F, sc: 002
Downward: vk: 9E, sc: 002
The following one is my nonfunctional script:
Code:
;HORIZONTAL SCROLLING FOR FOREMOST WHEEL:
vk9Fsc001:: ;SCROLL LEFT.
ControlGetFocus, control, A
SendMessage, 0x114, 0, 0, %control%, A ;0x114 is WM_HSCROLL (Windows Message Horizontal Scroll) and the 0 after it is SB_LINELEFT (Scroll Bar Line Left).
return
vk9Esc001:: ;SCROLL RIGHT.
ControlGetFocus, control, A
SendMessage, 0x114, 1, 0, %control%, A ;0x114 is WM_HSCROLL and the 1 after it is SB_LINERIGHT.
return
;VERTICAL SCROLLING FOR REAR WHEEL:
vk9Fsc002:: ;SCROLL UP.
ControlGetFocus, control, A
SendMessage, 0x115, 0, 0, %control%, A ;0x115 is WM_VSCROLL and the 0 after it is SB_LINEUP.
return
vk9Esc002:: ;SCROLL DOWN.
ControlGetFocus, control, A
SendMessage, 0x115, 1, 0, %control%, A ;0x115 is WM_VSCROLL and the 1 after it is SB_LINEDOWN.
return
AHK can't discriminate both wheels independently.
It is desirable that AHK (via the menu item "View -> Key history and script info") includes automatically Micha's dll, avoiding troublesome scripts that we, the common and anguished users, cannot do.
I wish to do a script using the excellent works of Micha and Chris, that eliminate heavy drivers. Could you please help me?
Thank you very much in advance.
Sorry my English.