this is not perfect maybe 99%
but try this
Function KeyboardLangCheck
Trigger !a"Quick Macros" "QM_Editor"
when qm window becomes active checks input language and switches to english if its not.
but try this
Function KeyboardLangCheck
Trigger !a"Quick Macros" "QM_Editor"

int hwnd=TriggerWindow
int l=GetKeyboardLayout(GetWindowThreadProcessId(hwnd 0))
int lo=l&0xffff
if lo <> 1033
,int NewKeybLayout = 0x00000409;; Layout must be already loaded!
,PostMessage(hwnd WM_INPUTLANGCHANGEREQUEST 0 NewKeybLayout)
,PostMessage(hwnd WM_INPUTLANGCHANGE 0 NewKeybLayout)when qm window becomes active checks input language and switches to english if its not.
