与Python或AHK一起循环与LMB

发布于 2025-02-06 06:54:45 字数 179 浏览 4 评论 0原文

祝您有美好的一天,有人可以帮我吗?我想制作一个程序,但我不知道如何。 。

LAlt::
loop
{
   click, down
   break
}
return

​我的问题是,我只使用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

LAlt::
loop
{
   click, down
   break
}
return

this does, when you press alt and release it, this holds down LMB until you click with LMB. My question is, how do I do it only with LMB. It would be necessary to add a key for PAUSE.
I don't understand much about programming, I did it with tutorials. Thanks for your time

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜点 2025-02-13 06:54:45

所以,我不知道我是否对您想要什么,但是我认为您需要这样的东西吗?

LButton::
If (var = "Pressed")
{
    Click, Left, , Up
    var := "Unpressed"
}
Else
{
    Click, Left, , Down
    var := "Pressed"
}
Return

作为从AHK开始的提示,您可以使用'https://www.macrocreator.com/',在此程序中,您可以很容易地制作一个脚本,并且可以看到它在AHK中所写的内容。

像这样:

您可以导出一个AHK文件,或者只需在屏幕右侧复制脚本即可。

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.

Like this:
enter image description here

You can export an AHK file, or just copy the script in the right side of the screen.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文