Jump to content
Sign in to follow this  
ogrish

click left button when the right is hold down to trigger a function

Recommended Posts

ogrish

Hi,

I want to trigger a function when the left mouse button is clicked and the right mouse is hold down in this process. How to do this using autoit? I know some software using this in their products.

Thanks

Share this post


Link to post
Share on other sites
smartee

hi ogrish,

Perhaps something like this is what your looking for?

#include <Misc.au3>
While 1
    Sleep(50)
    While _IsPressed("02")
        If _IsPressed("01") Then
            MsgBox(64, "Hey!!", "You left-clicked while right-clicking!")
        EndIf
    WEnd
WEnd

Hope this helps :unsure:

-smartee

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  

×