Jump to content
Sign in to follow this  
element72

hotkey for mouse?

Recommended Posts

element72

I can't find what I am looking for. I'm trying to make the middle mouse button a "hotkey" for left and right mouse button. I want to click the middle mouse button (the scroll wheel), so that uses left and right mouse buttons together (at the same time). What is the easiest way to accomplish this?

Edited by element72

Share this post


Link to post
Share on other sites
computergroove

I haven't tried it but try this:

#include <Misc.au3>

While 1
    If _IsPressed ("04") Then;04 is the middle mouse button
        MouseDown("Left")
        MouseDown("Right")
        While _IsPressed("04")
            Sleep (250)
        WEnd
    Else 
        MouseUp("Left")
        MouseUp("Right")
WEnd

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

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  

×