Project1
标题:
启动游戏时自动关闭输入法
[打印本页]
作者:
失落的乐章
时间:
2017-8-11 19:09
标题:
启动游戏时自动关闭输入法
本帖最后由 失落的乐章 于 2017-11-14 21:49 编辑
更新:最初的版本对 Win10 的微软拼音无效,现已修改。
hWnd = Win32API.new('user32', 'GetActiveWindow', nil, 'l').call
hIMC = Win32API.new('imm32', 'ImmGetContext', 'l', 'l').call(hWnd)
Win32API.new('imm32', 'ImmSetOpenStatus', 'li', 'i').call(hIMC, 0)
Win32API.new('imm32', 'ImmReleaseContext', 'll', 'i').call(hWnd, hIMC)
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1