01-04-2019, 01:29 PM (This post was last modified: 01-04-2019, 01:30 PM by win.)
Hello everyone,
I have used QM's AutoText feature for a while, I have encountered two small problems, I hope someone can provide some suggestions and help, thanks in advance.
1. Control the AutoText to take effect in the input box in a specific program, such as QM's help search box, I don't want to use it in the code editing area or other programs.
2. When I type letters in the search box, the input method will automatically switch to English, which is very convenient in some cases.
01-07-2019, 02:35 AM (This post was last modified: 01-07-2019, 02:37 AM by win.)
Thank you very much for your help, the first question has been solved perfectly.
On the second question, I found some information on the Internet. Using autohotkey, I can easily switch the input method. The following is the code. I want to know if there is any way to add the same function to QM. ?
SwitchIME (Is a function that switches input methods)
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_INPUTLANGCHANGEREQUEST0 NewKeybLayout) ,PostMessage(hwnd WM_INPUTLANGCHANGE0 NewKeybLayout)
when qm window becomes active checks input language and switches to english if its not.
01-09-2019, 03:03 AM (This post was last modified: 01-09-2019, 03:28 AM by Kevin.)
what english language version do you have installed? May also need to adjust language settings. worked for me flawlessly on win10 with multiple languages installed(German, chinese simplified and en-us). The code switches to en-us if installed.
will try and test on win7 and see if my results are the same.