可以在后windows中的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
我尝试这段代码,它在bluestacks时工作,但我移动屏幕或后bluestacks不工作
发布于 2015-01-15 23:16:42
你不能在隐藏的窗户上捕捉像素。你能做的是让它看起来快速(捕捉的时间),然后搜索内存中的像素。
这是一个非常快速的过程。看一看这个:
http://www.autoitscript.com/forum/topic/126430-advanced-pixel-search-library/
https://stackoverflow.com/questions/27938204
复制相似问题