Jump to content
Sign in to follow this  
Toady

Mousehook - Mousewheel up problem

Recommended Posts

Toady

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

Share this post


Link to post
Share on other sites
GaryFrost

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.

 

Share this post


Link to post
Share on other sites
Toady

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

Share this post


Link to post
Share on other sites
PaulIA

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

Share this post


Link to post
Share on other sites
Toady

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

Share this post


Link to post
Share on other sites
GaryFrost

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.

 

Share this post


Link to post
Share on other sites
PartyPooper

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.

Share this post


Link to post
Share on other sites
Toady

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

Share this post


Link to post
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
Sign in to follow this  

×