autoit 可以在 bluestacks 上使用 "PixelSearch" 和 "ControlClick" 和 "PixelGetColor"

autoit it possible to use "PixelSearch" and "ControlClick" and "PixelGetColor" on bluestacks

可以在后面的 bluestacks 上使用 "PixelSearch" 和 "ControlClick" 和 "PixelGetColor" windows

我想 运行 bluestacks 和 hind 中的机器人 windows 但 PixelSearch 只能在 Windows

上使用

我想使用 PixelSearch 查找颜色,如果 true 可以点击其他点并在后面工作 windows

Local $hwnd, $Cor
$hwnd = WinGetHandle("WindowsForms10.Window.8.app.0.33c0d9d")
While 1
$Cor = PixelSearch(460, 271, 511, 323, 0x9D6F47,$hwnd )
If Not @error Then
 ControlClick ( "BlueStacks App Player","","", "left" ,  1 , 477, 277 )
 sleep(200)
EndIf

$Cor = PixelSearch( 546, 212, 598, 267, 0x431567,$hwnd )
If Not @error Then
 ControlClick ( "BlueStacks App Player","","", "left" ,  1 , 608, 512 )
 sleep(200)
EndIf
WEnd

我尝试使用此代码,当 bluestacks on fornt 时它可以工作,但我移动屏幕或后方 bluestacks 不起作用

您无法捕捉到隐藏的 windows 上的像素。你能做的是让它快速出现( 捕捉的时间)然后在内存中搜索像素。

这是一个非常快速的过程。看看这个:

http://www.autoitscript.com/forum/topic/126430-advanced-pixel-search-library/