shell-ahk
Version:
`Lodash`/`jQuery` for `AHK`.
14 lines (10 loc) • 442 B
text/coffeescript
# @ts-check
import findImage_noop from './noop'
###* @type import('./findImage').FindImage ###
export default (source, start, end) ->
unless start then start = [0, 0]
unless end then end = [A_ScreenWidth, A_ScreenHeight]
[findImage_x, findImage_y] = [0, 0]
findImage_noop source
Native 'ImageSearch findImage_x, findImage_y, start[1], start[2], end[1], end[2], % A_ScriptDir . "\\\" . source'
return [findImage_x, findImage_y]