Holding down the left mouse button in AutoHotkey

 F1::

    alt := not alt

    if (alt)

    {

        Click down

    }

    else

    {

        Click up

    }

Return

Comments