Jump to content

Recommended Posts

Posted

Scrolling mousewheel down works but scrolling mousewheel up doesn't do anything.

What is wrong?

GUIRegisterMsg(0x1400 + 0x0D30,"MyFunc") ;mouse wheel up
GUIRegisterMsg(0x1400 + 0x0D31,"MyFunc") ;mouse wheel down

Func MyFunc($hWndGUI, $MsgID, $WParam, $LParam)
    ToolTip("Mouse: " & $MsgID & "," &  $WParam & "," &  $LParam & @LF)
EndFunc

www.itoady.com

A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding

Posted

Try something like:

GUIRegisterMsg(0x1400 + 0x0D30, "WheelsUp") ;mouse wheel up
GUIRegisterMsg(0x1400 + 0x0D31, "WheelsDown") ;mouse wheel down

Func WheelsUp($hWndGUI, $MsgID, $WParam, $LParam)
    ToolTip("Mouse: " & $MsgID & "," & $WParam & "," & $LParam & @LF)
EndFunc   ;==>WheelsUp

Func WheelsDown($hWndGUI, $MsgID, $WParam, $LParam)
    ToolTip("Mouse: " & $MsgID & "," & $WParam & "," & $LParam & @LF)
EndFunc   ;==>WheelsDown

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Posted

Try something like:

GUIRegisterMsg(0x1400 + 0x0D30, "WheelsUp") ;mouse wheel up
GUIRegisterMsg(0x1400 + 0x0D31, "WheelsDown") ;mouse wheel down

Func WheelsUp($hWndGUI, $MsgID, $WParam, $LParam)
    ToolTip("Mouse: " & $MsgID & "," & $WParam & "," & $LParam & @LF)
EndFunc   ;==>WheelsUp

Func WheelsDown($hWndGUI, $MsgID, $WParam, $LParam)
    ToolTip("Mouse: " & $MsgID & "," & $WParam & "," & $LParam & @LF)
EndFunc   ;==>WheelsDown
Thanks but...Same result. not working. Could something be wrong with the hook or is it just my computer...

www.itoady.com

A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding

Posted

Scrolling mousewheel down works but scrolling mousewheel up doesn't do anything.

What is wrong?

GUIRegisterMsg(0x1400 + 0x0D30,"MyFunc") ;mouse wheel up
GUIRegisterMsg(0x1400 + 0x0D31,"MyFunc") ;mouse wheel down

Func MyFunc($hWndGUI, $MsgID, $WParam, $LParam)
    ToolTip("Mouse: " & $MsgID & "," &  $WParam & "," &  $LParam & @LF)
EndFunc
I used your example (with a while loop added) and it doesn't produce anything on my machine. Are you trying to detect when you scroll with the mouse wheel or click with the mouse wheel?
Auto3Lib: A library of over 1200 functions for AutoIt
Posted

I used your example (with a while loop added) and it doesn't produce anything on my machine. Are you trying to detect when you scroll with the mouse wheel or click with the mouse wheel?

There is some code missing, it is code from Larry's mousehook.

I have tested this on 2 different computers, both same results.

www.itoady.com

A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...