我屏幕上有一个GUI,我需要在其中进行一些像素/图像搜索和点击。我认为解决方案是捕获窗口,然后对该图像进行搜索,但我不知道该怎么做。有什么想法吗?
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Global $msg
; Create a simple GUI
GUICreate("GUI", 400, 300, (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN))
GUISetState(@SW_SHOW) ;Show GUI
$hwnd = WinGetHandle("GUI")
WinMove($hwnd, "", 2000, 2000)
; Waiting for user to close the window
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect
WEnd
GUIDelete()