Sign in to follow this  
Followers 0
paolotonzini

help remapping mouse wheel up and down

4 posts in this topic

I have been trying to find a post that explained how to remap the scrolling feature (mouse wheel up and down) to the + and - keys on num pad, I had it all working for a while but just did a fresh install and cant find it any where on the web and cant figure out how to do it my self, can some one help me? I have a laptop and the scroll function doesn't work it was nice to be able to use the + and - buttons instead, thanks

Share this post


Link to post
Share on other sites



Maybe something like this?

;mouse
#include<Constants.au3>
#include <WinAPI.au3>

HotKeySet("!+","_up")
HotKeySet("-","_down")

func _up()
    ConsoleWrite("you pressed up"&@CRLF)
    _WinAPI_Mouse_Event($MOUSEEVENTF_WHEEL,"",20, +120)
EndFunc

func _down()
    ConsoleWrite("you pressed down"&@CRLF)
    _WinAPI_Mouse_Event($MOUSEEVENTF_WHEEL,"",20,-120)
EndFunc

while 1

WEnd

Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

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  
Followers 0