Toady Posted May 20, 2007 Share Posted May 20, 2007 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 More sharing options...
GaryFrost Posted May 20, 2007 Share Posted May 20, 2007 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 More sharing options...
Toady Posted May 20, 2007 Author Share Posted May 20, 2007 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 More sharing options...
PaulIA Posted May 20, 2007 Share Posted May 20, 2007 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) EndFuncI 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 More sharing options...
Toady Posted May 20, 2007 Author Share Posted May 20, 2007 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 More sharing options...
GaryFrost Posted May 20, 2007 Share Posted May 20, 2007 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 More sharing options...
Toady Posted May 21, 2007 Author Share Posted May 21, 2007 I probably copy/paste bugged it... I looky Monday.Lar.Thanks! www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
PartyPooper Posted May 21, 2007 Share Posted May 21, 2007 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. Link to comment Share on other sites More sharing options...
Toady Posted May 21, 2007 Author Share Posted May 21, 2007 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 More sharing options...
Toady Posted May 21, 2007 Author Share Posted May 21, 2007 Yep... it was buggered... try the new dll at...http://www.autoitscript.com/forum/index.ph...st&p=161698Lar.Works perfect now, Thank you Larry! www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now