【问题标题】:autoit it possible to use "PixelSearch" and "ControlClick" and "PixelGetColor" on bluestacksautoit 可以在 bluestacks 上使用“PixelSearch”、“ControlClick”和“PixelGetColor”
【发布时间】:2015-01-14 07:57:51
【问题描述】:

可以在后窗的 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 不工作

【问题讨论】:

    标签: autoit bluestacks


    【解决方案1】:

    您无法捕捉隐藏窗口上的像素。你可以让它快速出现( 捕捉时间)然后在内存中搜索像素。

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-10
      • 2011-07-22
      • 1970-01-01
      • 1970-01-01
      • 2014-03-21
      • 2021-12-02
      • 2011-12-16
      • 2016-06-05
      相关资源
      最近更新 更多