You could just as easily link the action to a simple touch trigger, and it would execute after that. And if a window opens immediately after a touch (for example, like the Dwelling's recruitment window), then the script written for the touch trigger will wait for you to exit the window and then execute!
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________