宏看起来没有“ OR MButton”就可以工作。如何同时使用两者?
Loop
{
KeyWait, RButton OR MButton
KeyWait, RButton OR MButton, D
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, 258, 762, 258, 762, 0x000402, 0, Fast RGB
If ErrorLevel
Break
If ErrorLevel = 0
{
Send, {2}
Sleep, 200
}
}
1
您是否要在按下其中一个按钮之后,之后或同时执行PixelSearch?
—
user3419297
不能查看[documentation],因为唯一预期的参数是一个键。您可能需要一个独立的循环来检查常规按键,并检查是否要对它进行响应。
—
赛斯
如果按RButton,发送2。如果按MButton,发送2。PixelSearch可以控制{2}是否免费。什么样的循环?
—
马可波罗