UNPKG

shell-ahk

Version:

`Lodash`/`jQuery` for `AHK`.

14 lines (10 loc) 462 B
# @ts-check import findColor_noop from './noop' ###* @type import('./findColor').FindColor ### export default (color, start, end, variation = 0) -> unless start then start = [0, 0] unless end then end = [A_ScreenWidth, A_ScreenHeight] [findColor_x, findColor_y] = [0, 0] findColor_noop color, variation Native 'PixelSearch findColor_x, findColor_y, start[1], start[2], end[1], end[2], color, variation, Fast RGB' return [findColor_x, findColor_y]