I guess you just forgot to change it after copy/paste...
and:
Code: Select all
If GetAsyncKeyState_(#VK_LBUTTON) & 32768
;...
EndIf
If Not GetAsyncKeyState_(#VK_LBUTTON) & 32768
;...
EndIf
replace the second If by an ELSE
additionally:
if I remember correctly, the &32768 is for registrating the first click.
if you want the behaviour like ExamineMouse/ExamineKeyboard you should leave the &32768 out.
in my example I have once per Frame a single call for each button:
Code: Select all
MLC = GetAsyncKeyState_(#VK_LBUTTON)
MRC = GetAsyncKeyState_(#VK_RBUTTON)
without having called GetAsyncKeyState more than once.