ogrish 0 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 Share this post Link to post Share on other sites
smartee 14 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 Share this post Link to post Share on other sites