Thank you for you your answer and sorry for late response
I have tried to change the script to
PostMessage, 0x50, 0x0002, 0x0,, A ; 0x50 is WM_INPUTLANGCHANGEREQUEST
But it didn't help. Unfortunately, I'm not strong in C++ and don't know what can I try to resolve this :( Maybe you have some other thoughts on this?