-
Notifications
You must be signed in to change notification settings - Fork 594
如何通过Windows message切换中英文 #1555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
为什么不用weasel.custom.yaml app_options ascii_mode或者模拟按Shift? |
或者试试 |
一开始试过,后面发现容易按键冲突,很偏门的快捷键了,有时响应也不好 |
今天试了,执行这个命令输入法毫无反应 |
在 ahk 调 WeaselServer.exe 试试,可能要写完整路径 WeaselServer.exe /ascii - CLI 中切换 ASCII 模式 |
我是直接在PowerShell,rime程序文件夹目录下执行的,效果不好,WeaselServer好像重新运行了,四五秒输入法没有反应 |
我如果能支持通过 windows message 切换中英文也是个好特性, 因为通过按键(包含通过外部软件如 ahk 来发送的)来中英文经常会与使用自定义映射按键或热键的人有冲突 |
我想在进入某些软件时强制切换中英文,0.15.0的版本可以通过ahk发送
SendMessage(
0x283, ; Message : WM_IME_CONTROL
0x006, ; wParam : IMC_SETCONVERSIONMODE
0, ; lParam :1025 - CN
,
"ahk_id " DllCall("imm32\ImmGetDefaultIMEWnd", "Uint", hWnd, "Uint")
)
SendMessage(
0x283, ; Message : WM_IME_CONTROL
0x006, ; wParam : IMC_SETCONVERSIONMODE
1025, ; lParam :1025 - CN
,
"ahk_id " DllCall("imm32\ImmGetDefaultIMEWnd", "Uint", hWnd, "Uint")
)
强制切换中文,但更新0.16.0后,这个方法就不适用了,请问新版rime有提供通过Windows message切换中英文的方法吗
The text was updated successfully, but these errors were encountered: