Code: Select all
MButton::
While GetKeyState("MButton","P")
{
Click
sleep 40
}
While this code works fine even if I press multiple keys and then the MButton but I have other issues with this code.
#IfWinActive does not work for me with this code below.
Code: Select all
MyLabel:
Loop
{
GetKeyState, state, Mbutton
if state = D
{
loop
{
click
Sleep, 40
Goto, MyLabel
}
}
}