I want a script where pressing F1 makes AutoHotkey hold down the left mouse button. I then want the script to release the mouse once I press the key again.
我怎样才能做到这一点?
我会使用“向下单击”和“向上单击”
Click https://autohotkey.com/docs/commands/Click.htm通常优先于鼠标点击 https://autohotkey.com/docs/commands/MouseClick.htm因为如果用户通过系统的控制面板交换了鼠标左键和右键,它会自动进行补偿。
F1::
alt := not alt
if (alt)
{
Click down
}
else
{
Click up
}
Return
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)