Jump to content

Mousehook - Mousewheel up problem


Recommended Posts

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

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

Using his dll and MouseHook.au3 the scroll wheel up doesn't show on mine, all the others seem to.

SciTE for AutoItDirections for Submitting Standard UDFs

 

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

 

Link to comment
Share on other sites

If this is for your MacroGamer script, a DLL call may help Toady. Have a look at this link - mouse_event Function In particular, have a look at the MOUSEEVENTF_WHEEL parameter and dwData.

I really appreciate the help, I will just wait until Larry fixes the hook.dll. :)

www.itoady.com

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

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...