cod with ahk i need work it in background app or inactive app

12/24/2022 20:07 amsed2100#1
Is it possible for someone to convert this code to work in inactive screen :confused:

Code:
CoordMode, Pixel, Window
    PixelSearch, FoundX, FoundY, 0, 0, 1280, 1024, 0x00FF90, 30, Fast RGB
    If ErrorLevel = 0
    	Click, %FoundX%, %FoundY%, 1
    Sleep, 500
    Click, 137, 96, Left, 1
    Sleep, 500