以前在win7(32位)+Ahk32_Unicode 下面,操作稳定。
Code: Select all
; win7(32),Ahk(32 Unicode)
coordmode,Mouse,screen
WheelUp::
WheelDown::
MouseWheelSetp:=(A_ThisHotkey="WheelUp") ? 120 : -120
MouseGetPos, MWAW_x, MWAW_y
MWAW_Hwnd := DllCall( "WindowFromPoint", "int", MWAW_x, "int", MWAW_y )
SendMessage, 0x20A, MouseWheelSetp << 16, ( MWAW_y << 16 )|MWAW_x,, ahk_id %MWAW_Hwnd%
return
Code: Select all
coordmode,Mouse,screen
WheelUp::
WheelDown::
MouseWheelSetp:=(A_ThisHotkey="WheelUp") ? 120 : -120
MouseGetPos, MWAW_x, MWAW_y,MWAW_win
SendMessage, 0x20A, MouseWheelSetp << 16, ( MWAW_y << 16 )|MWAW_x,, ahk_id %MWAW_win%
return
能修改到能用么?