我写的自动点击器声称抽搐频道点无法正常工作,我想了解为什么



我使用AutoHotKey编写了一个程序,理论上,应该自动在twitch上声明小通道点箱子。然而,实际上它什么也不做。我是个编程新手,所以饶了我吧。下面是代码:

o:: ; this is a killswitch in case anything goes wrong
{
exitapp
} 
p::
while (true)
{
PixelGetColor, color, 1680, 1060 ; finds the color of a pixel that the chest appears on
if (color = 8FFFD2) ; if the color of that pixel is the color of the chest when it is highlighted
{
Click, 1700, 1060 ; click on where the chest appears
}
} 

我试着运行这个,而一个箱子在那里,代码没有做任何事情,我确保我的鼠标也高亮显示它。我也明白BTTV可以自动认领箱子,这只是我做的一个小项目,我只是为了好玩。

你所需要做的就是用一行代码将鼠标移动到坐标上,然后再点击另一行。

试试这个,它应该可以工作:

o:: ; this is a killswitch in case anything goes wrong
{
exitapp
} 
p::
while (true)
{
PixelGetColor, color, 1680, 1060 ; finds the color of a pixel that the chest appears on
if (color = 8FFFD2) ; if the color of that pixel is the color of the chest when it is highlighted
{
Mousemove, 1700, 1060
click   ; click on where the chest appears
}
} 

最新更新