我想在特定窗口的同一区域搜索多种颜色。
有没有办法使用像素搜索功能一次搜索多种颜色,或者我是否需要像这样一遍又一遍地循环像素搜索命令:
F12:: {
if PixelSearch(&Px, &Py, 41, 23, 686, 171, 0xFFFFFF, 1) and PixelSearch(&Px, &Py, 41, 23, 686, 171, 0x000000, 1) {
MsgBox("found")
}
所以,我想要这样的东西:
F12:: {
Colors := 0xFFFFFF And [or] 0x000000
if PixelSearch(&Px, &Py, 41, 23, 686, 171,Colors , 1) {
MsgBox("found")
}
请提供任何帮助!
F12:: {
Color1 := 0xFFFFFF
Color2 := 0x000000
Colors := Color1 | Color2
if PixelSearch(&Px, &Py, 41, 23, 686, 171, Colors, 1) {
MsgBox("found")
}}
这应该可行!