MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / InputTimeout

Function InputTimeout

source/application.cpp:2013–2031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2011
2012
2013VOID CALLBACK InputTimeout(HWND hWnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
2014{
2015 int new_timer_period = 0;
2016 for (auto *input = g_input; input; input = input->Prev)
2017 {
2018 if (input->Timeout && input->InProgress())
2019 {
2020 int time_left = int(input->TimeoutAt - dwTime);
2021 if (time_left <= 0)
2022 input->EndByTimeout();
2023 else if (time_left < new_timer_period || !new_timer_period)
2024 new_timer_period = time_left;
2025 }
2026 }
2027 if (new_timer_period != 0)
2028 SET_INPUT_TIMER(new_timer_period, dwTime + new_timer_period)
2029 else
2030 KILL_INPUT_TIMER
2031}
2032
2033
2034

Callers

nothing calls this directly

Calls 2

InProgressMethod · 0.80
EndByTimeoutMethod · 0.80

Tested by

no test coverage detected