ogrish Posted May 5, 2011 Share Posted May 5, 2011 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 Link to comment Share on other sites More sharing options...
smartee Posted May 5, 2011 Share Posted May 5, 2011 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 -smartee 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