Hello Forum:
I need my script to execute "some action" whenever I left-click my mouse button. It does not matter where I click. All that matters is that the left-click button was pressed. Is there a way to do that?
Thanks and Happy New Year in advance!
Aaron
Left click mouse trigger... can it be done?
Moderators: Dorian (MJT support), JRL
Re: Left click mouse trigger... can it be done?
Code: Select all
OnEvent>key_down,VK1,0,Click
Let>ClickFlag=0
Let>ClickCount=0
Label>Loop
Wait>0.01
If>ClickFlag>0
Add>ClickFlag,1
If>ClickFlag=4
Let>ClickFlag=0
EndIF
EndIf
Goto>Loop
SRT>Click
If>ClickFlag>0
Let>ClickFlag=1
Else
Let>ClickFlag=1
Add>ClickCount,1
//The next line would be replaced with the lines of code you want to run each click.
Message>Click Count = %ClickCount%
EndIf
END>Click
Re: Left click mouse trigger... can it be done?
Awesome! Thanks JRL this is what I was looking for.
Have a Happy New Year.
Aaron
Have a Happy New Year.
Aaron