ArrowThunder

Pixel detection test

Jun 25th, 2022 (edited)
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.38 KB | None | 0 0
  1. AutoItSetOption("PixelCoordMode", 0)
  2.  
  3. Local $bActive = False
  4. Local $hWindow
  5.  
  6.  
  7. Func Start()
  8.    WinWaitActive("omitted for privacy")
  9.    $hWindow = WinGetHandle("omitted for privacy")
  10.    MsgBox(0, "Colors", "Left Color: " & PixelGetColor(158, 350, $hWindow) & @LF & "Right Color: " & PixelGetColor(228, 350, $hWindow))
  11. EndFunc
  12.  
  13. HotKeySet("g","Start")
  14.  
  15. While 1
  16.    Sleep(1000)
  17. WEnd
Add Comment
Please, Sign In to add comment