1

可以在后窗的 bluestacks 上使用“PixelSearch”、“ControlClick”和“PixelGetColor”

我想在 bluestacks 和后窗中运行 bot,但 PixelSearch 只能在 Windows 上使用

我想使用 PixelSearch 来查找颜色(如果为真)以单击其他点并在后窗口中工作

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

我试试这个代码,它在 fornt 上的 bluestacks 时有效,但我移动屏幕或后 bluestacks 不起作用

4

1 回答 1

0

You can't catch a pixel on an hidden windows. What you can make it's make it appear quickly ( the time to make a capture) an then search forthe pixel in memory.

That's a very quick process. Take a look at this :

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

于 2015-01-15T23:16:42.533 回答