[英]loop with python or ahk with LMB
have a nice day, could someone help me?祝你有美好的一天,有人可以帮我吗? I would like to make a program but I don't know how.我想做一个程序,但我不知道怎么做。 .ahk if possible or python ..in ahk i did this .ahk 如果可能的话或 python ..in ahk 我这样做了
LAlt::
loop
{
click, down
break
}
return
this does, when you press alt and release it, this holds down LMB until you click with LMB.确实如此,当您按下 alt 并释放它时,这会按住 LMB 直到您单击 LMB。 My question is, how do I do it only with LMB.我的问题是,我如何只使用 LMB 来做到这一点。 It would be necessary to add a key for PAUSE.有必要为 PAUSE 添加一个键。 I don't understand much about programming, I did it with tutorials.我对编程不太了解,我是通过教程完成的。 Thanks for your time谢谢你的时间
So, I don't know if I understand well what you want, but i think you need something like this?所以,我不知道我是否理解你想要什么,但我认为你需要这样的东西?
LButton::
If (var = "Pressed")
{
Click, Left, , Up
var := "Unpressed"
}
Else
{
Click, Left, , Down
var := "Pressed"
}
Return
As a tip to begins with ahk, you can use 'https://www.macrocreator.com/', in this program you can make a script very easily and you can see what it writes in ahk.作为以 ahk 开头的提示,您可以使用“https://www.macrocreator.com/”,在此程序中您可以非常轻松地制作脚本,并且可以看到它在 ahk 中写入的内容。
You can export an AHK file, or just copy the script in the right side of the screen.您可以导出 AHK 文件,或仅复制屏幕右侧的脚本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.