-While I keep pressed the "MButton" it executes "spacebar(down)and left click (down)"
-When I release the MButton it makes the opposite "spacebar(Up) and Left click (Up)"
This is a sample code that I made (i'm still new in this)
Code: Select all
{If WinActivate, ahk_class indesign
MButton::
Send, {Space Down}
MouseClick, Left,,, 1, 0, D
Loop
{
Sleep, 10
If GetKeyState["MButton", "P"]
Break
}
MouseClick, left,,, 1, 0, U
sleep 10
Send, {Space Up}
Return
}