Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatic switching input method
#1
Hello, I have a long-term unresolved problem. The method I found in the forum did not solve my problem. I hope someone can provide some suggestions. Thanks in advance.

In autohotkey, I can use the following input method function to switch.
switchime("The name of the input method ")

How to implement it in QM? 
for example, in the following dialog box, when inputting in the edit box, it will automatically switch to the corresponding input method.


Macro Macro2
Code:
Copy      Help
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 Edit 0x54030080 0x200 100 24 96 12 ""
;4 Static 0x54000000 0x0 16 24 68 10 "English input method"
;5 Static 0x54000000 0x0 16 52 70 10 "Chinese input method"
;6 Edit 0x54030080 0x200 100 52 96 13 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040801 "*" "" "" ""

str controls = "3 6"
str e3 e6
if(!ShowDialog(dd 0 &controls)) ret


#sub DlgProc
function# hDlg message wParam lParam

sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1


Messages In This Thread
Automatic switching input method - by win - 04-07-2019, 11:15 PM
RE: Automatic switching input method - by win - 06-26-2019, 08:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)