If action happens earlier than, statement Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
VetX
Posts: 5
Joined: 25 Apr 2022, 11:37

If action happens earlier than, statement

Post by VetX » 24 May 2022, 11:22

Hey, i need help with code that performs an action if pixel color changes earlier than a certain amount of time

Code: Select all

CoordMode, Pixel, Relative

Loop
 {
PixelSearch, x, y, 1826, 822, 1834, 827, 0xE5464F
if x, y, "changes earlier than" 1000,
{
DetectHiddenWindows, On 
WinClose, %fullScriptPath% ahk_class AutoHotkey
}
 }

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: If action happens earlier than, statement  Topic is solved

Post by BoBo » 24 May 2022, 11:28

A_TickCount :?: ... 'if elapsed time < expected time'

Post Reply

Return to “Ask for Help (v1)”