Input Method Manager (IMM):输入法管理器

Android软键盘——InputMethodManager使用:显示、隐藏软键盘 文章目录1、InputMethodManager介绍2、InputMethodManager用法2.1、显示软键盘2.2、隐藏软键盘2.3、实现输入法在窗口上切换显示,如果输入法在窗口已经显示,则隐藏;如果已经隐藏,则显示软键盘。2.4、判断当前软键盘状态是打开 or 关闭 1、InputMethodManager介绍 InputMethodManager是一个用于控制显示或隐藏输入法面板的类。 获取InPutMethodManager的方法很简单: InputMethodManager imm = 阅读详情
Windows CE Features > International


Microsoft? Windows? CE includes the Input Method Manager (IMM) Catalog item. IMM manages the communication between an Input Method Editor (IME) and an application. IMM exposes a set of programming elements that enables applications to create and manage their own IME windows, and to provide a custom interface while using the conversion capabilities of the IME. 
CE包含IMM组件,IMM管理IME和应用之间的通讯。IMM提供一套编程接口,使应用创建和管理其IME窗体,并且为使用IME转换功能提供自定义的接口。


In This Section
此部分主要说明以下几点:
Input Method Manager (IMM) OS Design Development 
IMM OS设计开发
Provides information about Input Method Manager (IMM) that is helpful when designing and developing a Windows CE OS. This includes dependency information, the modules and components that implement IMM, and IMM implementation considerations. 
提供当设计和开发CE OS时,IMM相关的帮助信息。包括依赖信息、实现IMM所需的组件和IMM实现的条件。
Input Method Manager (IMM) Application Development 
IMM应用开发
Provides an overview of the input method system and describes how to use the IMM application programming interface (API).
提供输入法系统的概述,描述如何使用IMM API。 
Input Method Manager (IMM) Samples 
IMM示例
Describes sample code that is available in the %_WINCEROOT%\Public\Common\Sdk\Samples directory. 
详细的示例代码位于%_WINCEROOT%\Public\Common\Sdk\Samples目录中。
Input Method Manager (IMM) Reference 
IMM参考
Provides reference material for IMM programming elements. 
IMM编程元素的详细参考。
Related Sections
相关部分
International Application Development 
Describes how to program and design a global application. 
多国应用开发
如何开发与设计多国应用的描述。


----------
Input Method Manager (IMM) OS Design Development
IMM OS设计开发
Windows CE Features > International > Input Method Manager (IMM)


Windows CE enables you to include Input Method Manager (IMM) in your OS design. 
在进行OS设计时,可以包含IMM到CE系统中。
OS Design Information
OS设计信息
The following table shows operating system design information for Input Method Manager (IMM).
下表显示IMM 相关的OS设计信息
Concept(概念)                           Description(描述)
Dependencies(依赖关系)                  None 
Hardware considerations(硬件条件)       None 


Modules and Components
组件
The following table shows the components and modules that implement Input Method Manager (IMM).
下表显示实现IMM需要的组件
Item                    Module      Component 
Input Method Manager    coredll     coreimm, coreimmstub 
IMM Thunking            gwes        immthunk 


Input Method Manager (IMM) Implementation Considerations
IMM实现条件
The following table shows the Sysgen variables for Input Method Manager (IMM).
下表显示与IMM相关的SysGen变量
Sysgen variable     Description 
SYSGEN_IMM          When this variable is set, Input Method Manager (IMM) is
                    included in the run-time image. 
                    当设计此变量时,IMM被包含到运行时映像中。


----------
Input Method Manager (IMM) Application Development
IMM应用开发
Windows CE Features > International > Input Method Manager (IMM)


Input Method Manager (IMM) manages the communication between an Input Method Editor (IME) and an application. IMM exposes a set of programming elements that enable applications to create and manage their own IME windows, and to provide a custom interface while using the conversion capabilities of the IME. 
IMM负责IME和应用之间的通讯,IMM提供一套编程接口使用应用可以创建和管理其IME窗体,并且当使用IME的转换功能时提供自定义的接口。
In This Section
此部分包含以下内容:
Working with the Input Method Editor
从事IME工作
 Method Manager (IMM) Reference
IMM参考
Related Sections
相关部分
Locale Specific Support
区域设置(本地)细节支持
International
多国化




Working with the Input Method Editor
从事IME工作
Windows CE Features > International > Input Method Manager (IMM) > Input Method Manager (IMM) Application Development


The Input Method Editor (IME) in Microsoft? Windows? CE simplifies the process of providing input for users. In particular, IMEs are required for many Asian languages in order to input characters from the keyboard. These languages are often made up of thousands of distinct characters, which make it impossible to show all of the characters on a single keyboard. To facilitate composition, the IME converts the keystrokes into the characters of the target language as a user types. Depending on the IME, these characters may be further converted. The IME in Windows CE that is localized for Japanese, for example, converts Roman keystrokes entered by a user to Katakana or Hiragana. Then, an additional conversion changes characters to Kanji. 
CE的IME简化了提供给用户的输入过程,特别是为了使用键盘输入亚洲语言时,IME是必须的。这些语言通常是由数千的不同的字符构成,在一个小键盘上显示所有字符是不可能的。为了便于写作(输入),IME转换按键到用户类型的(被翻译的)语言。依靠于IME,字符进一步的转换。例如,CE中的IME可以处理日文,转换用户输入的罗马字符到片假名和平假名。然后,额外的转换转换这些字符到日本汉字。
The IME can also present a list of alternatives, called the candidate list, in situations in which the composition is ambiguous. A Windows CE–based application uses the Input Method Manager (IMM) to communicate with the IME.
IME在输入含糊不清的情况下,可以提供一系列的选择,称为候选列表。基于CE的应用用户使用IMM与IME通讯。


See Also
相关内容
Overview of the Input Method System | Overview of the IME User Interface
输入法系统概述 | IME用户接口概述


Overview of the Input Method System
输入法系统概述


Windows CE Features > International > Input Method Manager (IMM) > Input Method Manager (IMM) Application Development > Working with the Input Method Editor
The main parts of the Input Method system are the following: 
输入法系统的主要部分如下:
The IME kernel contains the knowledge of the specific language that a user is inputting. 
IME内核包含用户输入的特定语言的知识。
The IME user interface (UI) consists of a Status window, a default Composition window, a Candidate window, and a Guideline window. 
IME UI包含状态窗体、输入窗体、候选窗体和准则窗体。
布局窗体(Guideline window):The width of the guideline window is calculated by adding together the width of the close button, the width of the composition string area, the left and right margins of the window, and the width of the borders if the borders are specified by the CImeCUIDefCompWindow::GetWndStyle or the CImeCUIDefCompWindow::GetWndStyleEx method.---摘自MSND:http://msdn.microsoft.com/en-us/library/aa912208.aspx
The Input Method Manager (IMM) coordinates the interaction among the window system, the application, and the IME. 
IMM协调操作系统,应用和IME之间的合作。
An input context maintains the current state of user interaction with the IME. In particular, it maintains the composition string, which consists of the characters that a user is in the process of inputting. 
输入法上下文维护IME用户接口的当前状态,尤其是它维护用户正在输入的候选字符串。
An IME Control window routes unhandled IME messages to the IME. 
IME控制窗体传递未处理的IME消息给IME。
The basic operation is as follows.
基础的操作如下:
A user presses keys on a keyboard. These keystrokes are routed to the IME by the IMM. The IME uses the keys either as commands or to generate characters in the composition string. As the IME carries out its operations, it sends notification messages to the window that currently has the focus. If this window does not process the messages, the messages are sent to the IME Control window, which then routes them back to the IME for default processing. Windows that do not process IME messages are called IME-unaware windows. The IME provides the entire user interface, and the window is completely unaware that an IME is operational. Windows that intercept and process IME messages are called IME-aware windows. By intercepting IME messages, these windows may provide their own UI. By using IMM functions, these windows communicate with the IME.
用户按键,此按键通过IMM传递到IME。IME将此按键当成命令或当成输入字符串产生字符。当IME执行它的操作后,发送通知信息到当前焦点窗体。如果此窗体不处理此信息,消息被发送到IME控制窗体,控制窗体然后回传信息到IME进行缺省处理。不处理IME消息的窗体被称做不知道IME的窗体。IME提供完整的用户接口,并且这些窗体是完全未察觉IME操作。拦截并处理IME消息窗体,称为知道IME的窗体。通过拦截IME消息,这些窗体可以提供它们自己的UI。通过使用IMM功能,这些窗体与IME通讯。


Overview of the IME User Interface
IME用户接口概述
Windows CE Features > International > Input Method Manager (IMM) > Input Method Manager (IMM) Application Development > Working with the Input Method Editor


The IME-provided UI consists of the Status, Composition, Candidate, and Guideline windows. By default, the IME creates and manages these windows for all windows that require text input. For most applications, this default processing is sufficient. An application that relies entirely on the IME for its UI is considered IME-unaware because it is unaware that an IME is functioning in the system.
IME提供的UI包含状态、输入、候选和布局窗体。默认情况,IME创建并管理所有请求文字输入的窗体。对于绝大多数程序,默认的处理是足够的。UI完全依赖于IME的应用被认为是不知道IME的,因为当系统中有IME功能时它不知道IME的存在。
In contrast, an IME-aware application participates in the operation of the IME. Such an application can control the operation, position, and appearance of the IME, or can even provide its own view of the composition string and candidate list.
相反,知道IME的应用分享IME的操作。例如应用可以控制操作、位置和IME的外观,或者甚至提供属于自己的输入字符串和候选列表的视图(窗体)





Android 实现搜索历史 SharedPreferences实现本地搜索历史功能,覆盖搜索重复的文本,可清空 1. 判断搜索内容是否含表情,不需要可以不判断 /** * 校验字符串是否含有表情 * @param content * @return */ public static boolean hasEmoji(String content){ ... 阅读详情

相关推荐

C++跨平台输入法管理:构建健壮的GUI应用输入解决方案

输入法作为人机交互的关键组件,其核心原理在于在应用程序与操作系统输入框架之间建立桥梁,实现文本输入的转换与处理。在跨平台开发中,这一技术价值尤为突出,它直接关系到应用在不同系统(如Windows的TSF/IMM与Linux的IBus/Fcitx)下的兼容性与用户体验。通过设计抽象层来封装平台差异,开发者可以构建稳定的事件驱动机制,确保输入法状态与窗口焦点的精准同步。这一工程实践广泛应用于需要深度文本输入或国际化支持的桌面软件,例如IDE、办公套件和本地化工具。本文聚焦于**C++跨平台输入法管理**,深入剖

weixin_29215815的博客 328

InputMethodManager的用法,键盘、隐藏

概述 InputMethodManager imm = (InputMethodManager)getSystemService(SendActivity.this.INPUT_METHOD_SERVICE); //隐藏键盘 imm.hideSoftInputFromWindow(editText.getWindowToken(), 0); //显示键盘 imm.showSoftInput(editText, 0); 程序启动后直接弹出软键盘,不能直接在OnCreate中设置,必

weixin_42814000的博客 6495

输入法误触的工程级解决方案:从系统到代码的全面防护

输入法作为操作系统与用户交互的核心组件,其工作机制涉及按键事件捕获、预编辑状态管理和最终字符上屏。在需要精确、即时反馈的交互场景中,输入法的预编辑状态与应用程序期望的直接键位输入会产生冲突,导致操作失效或数据错误。这一问题的技术价值在于保障关键操作(如游戏技能释放、命令行执行、自动化脚本输入)的确定性与可靠性,直接影响用户体验和系统稳定性。应用场景广泛覆盖游戏开发、自动化测试、直播推流、专业软件操作及开发运维环境。本文针对输入法误触这一典型工程痛点,提供了从系统级强制管理(如使用PowerShell、Aut

weixin_33868027的博客 494

android开发浅谈之InputMethodManagerService

输入法管理服务的整体框架 输入法的整件框架: 参考资料 1.Android输入法框架系统(上) https://blog.youkuaiyun.com/ITleaks/article/details/27398453?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522162383108116780264086746%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%25

hfreeman2008的专栏 8007

Windows Mobile 6.5.3嵌入式开发实战:工业系统逆向与驱动定制指南

Windows Mobile虽已退出消费市场,但其内核架构仍是理解现代移动操作系统底层原理的重要范本。它基于Windows CE微内核,采用对象存储、ROM/RAM双区启动和DDI驱动抽象等核心机制,深刻影响了Android Binder、车机OTA及驱动即服务等关键技术演进。作为仍活跃于全球数千个工业现场的存量系统,WM 6.5.3具备可写ROM、设备模拟层(DEL)和CAB签名强制校验等面向嵌入式场景的工程化设计,是学习操作系统如何接管裸机、构建安全可靠固件分发链路的理想教学载体。本文聚焦工业级实操,覆

ciyinzhi8788的博客 575

输入法修复工具实战:解决状态条、语言栏与切换故障

htmltable {th, td {th {pre {简介:输入法是人机文字交互的关键工具,但在使用过程中常因系统异常、软件冲突或病毒导致状态条消失、语言栏无法显示及输入法切换失效等问题。本文介绍专业的输入法修复工具如何通过扫描注册表、修复配置文件、恢复服务和重置设置等方式,全面修复输入法三大核心问题,帮助用户快速恢复正常的输入体验。文章涵盖自动与手动修复方法,强调数据备份与操作安全性,适用于各类常见输入法故障场景。

weixin_42627459的博客 5499

Android之InputMethodManager介绍

image.png InputMethodManager Android主要用InputMethodManager来对软键盘进行管理。 InputMethodManager整个输入法框架(IMF)结构的核心API,应用程序之间进行调度和当前输入法交互。 可以用Context.getSystemService()取得这一接口的实例。 InputMethodManager imm = (In...

u012739527的博客 1852

ETL数据集成案例

一个典型的ETL数据集成案例是将多个来源的数据合并成一个数据集。假设有一个公司,该公司使用一些不同的系统来存储不同部门的数据,例如销售数据存储在一个CRM系统中,财务数据存储在一个ERP系统中,人力资源数据存储在一个HR系统中。为了更好地进行报告和分析,该公司决定将所有这些数据集成到一个数据仓库中。以下是实现这一目标的ETL过程的步骤:提取(Extract):首先,需要从每个系统中提取所需的数据。每个系统可能有不同的数据格式和结构,因此需要编写不同的提取程序或查询来提取数据。

runqu的博客 949

【译】Input Method Manager (IMM):输入法管理器

Windows CE Features > InternationalMicrosoft? Windows? CE includes the Input Method Manager (IMM) Catalog item. IMM manages the communication between an Input Method Editor (IME) and an application...

weixin_30307267的博客 242

无线Mesh组网全攻略:从原理、部署到调优与排障

对于布线困难的大户型、复式楼或园区,传统的无线中继往往面临带宽减半和链路不稳定的问题。无线Mesh网络通过多跳转发与自组织路由,让每个节点无需网线即可协作扩展覆盖,并依靠动态路径选择实现自愈。其核心技术涉及802.11s、HWMP路由协议,以及802.11k/v/r协同的无缝漫游,能有效提升终端切换体验。在实际部署中,设备选型、回程频段规划与布点位置直接决定网络质量。围绕无线Mesh的组网原理、设备选型、配置调优与故障排查,提供一套工程实践参考,帮助用户在复杂环境下构建稳定高效的无缝覆盖。

weixin_34098209的博客 276

tuts4you-lena151-Crackme-tutorial06

一、前言      本次研究的是lena151-Crackme-tutorial06,也是一个应用程序,但因为平台迭代的关系,程序不能正常运行,只能完成部分破解。 (一)·本次我们要破解的目标是个应用程序,如下图 (二)、使用工具:x32dbg 二、过程 这个程序的破解的方法很多,首先最简单的一种不外乎就是搜索字符串,我就按照这个思路来完成。 (一)查找字符串<Unregis...

h123120的专栏 520

IME 管理函数(Input Method Manager)

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34221332的博客 593

达梦的自定义类型和存储过程支持创建同义词,不支持同义词使用?

达梦8的自定义类型和存储过程支持创建同义词,但是通过同义词调用报错,而在oracle上验证没有问题,难道是发现了达梦的bug了?非也非也,详情请见下文

wy071218的专栏 979

Android 中InputMethodManager类的用法

正文   一、结构 public final class InputMethodManager extends Object          java.lang.Object android.view.inputmethod.InputMethodManager     二、类概述   整个输入法框架(IMF)结构的核心API,应用程序之间

dahuzi的专栏 1961

【目标检测】IoU(交并比)详解及代码实现

1. IOU概述        IoU的全称为交并比(Intersection over Union),是目标检测中使用的一个概念,IoU计算的是“预测的边框”和“真实的边框”的交叠率-,即它们的交集和并集的比值。最理想情况是完全重叠,即比值为1。 2. IoU计算        IoU等于“预测的边框”和“真实的边框”之间交集和并集的比值。IoU计算如下图,B1为真实

Roaddd的博客 2万+

【光子 AI】AI Agent 知识体系深度研究报告

从理论基础到前沿应用:全面解析人工智能代理的核心架构、关键技术与发展趋势📅 2026 年 3 月 | 📊 深度研究报告 | 🔬 人工智能领域 | 📈 前沿技术分析**AI Agent(人工智能代理)**是一种能够感知环境、基于所获得的信息做出决策,并执行行动以影响该环境的软件系统。AI Agent 的设计旨在模仿或实现智能行为,它们可以在各种环境中操作,包括物理世界和虚拟空间。随着大语言模型(LLM)技术的突破性进展,AI Agent 正从实验室研究快速走向产业应用。根据 Gartner 发布的《2

AI天才研究院 180

InputMethodManager处理软键盘显示和隐藏的问题

InputMethodManager处理软键盘显示和隐藏的问题 Android中对软键盘的处理,可以使用showSoftInput方法进行显示操作: public boolean showSoftInput(View view, int flags) 而对应的隐藏方法为hideSoftInputFromWindow: public boolean hideSoftInputFromWindow(IBinder windowToken, int flags) 其中对于显示和隐藏,都有一个关键的控制参数fla

new_huiyuan的专栏 2951

17 指挥AI写Mamba相关模型代码,快速适配大模型场景

本文为《30天掌控AI编程:从指令到落地,手把手教你指挥AI写代码》系列第十七篇,属于第三阶段多场景实战核心内容。本篇聚焦当下大模型领域热门的**Mamba架构**,针对零基础大模型开发、无深度学习基础的使用者,拆解指挥AI生成Mamba基础模型、微调适配、推理部署代码的核心方法,覆盖Mamba基础模块搭建、简易序列建模、小样本微调、本地推理等高频场景,提供可直接复用的高质量指令模板、完整可运行代码、环境配置与避坑指南,无需精通Transformer、状态空间模型等底层原理,轻松上手Mamba大模型开发。

coreopt的博客 61

Android InputMethodManager输入法简介

正文   一、结构 public final class InputMethodManager extends Object Java.lang.Object android.view.inputmethod.InputMethodManager   二、类概述   整个输入法框架(IMF)结构的核心API,应用程序之间进行调度和当前输入法交互。你可以用Context.g...

468

【Unity引擎技术整合】 Unity学习路线 | 知识汇总 | 持续更新 | 保持乐趣 | 共同成长

本文对Unity引擎的知识进行了一个整理总结,基本包含了Unity中大部分的知识介绍。 网上也有很多Unity相关的学习资料,但大多数都不成体系,学起来的时候难免会东奔西走的摸不着头脑。 本文整理的多数文章都是有对应的系列性文章专栏,可以更方便的进行系统学习相关知识体系。

努力前行,总会成为自己心中的那道光 15万+

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

关于InputMethodManager的使用方法

InputMethodManager是一个用于控制显示或隐藏输入法面板的类(当然还有其他作用)。 获取InPutMethodManager的方法很简单。 1 InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); ...

互联网 609

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

android 软键盘完全解析 InputMethodManager

官方文档:Central system API to the overall input method framework (IMF) architecture, which arbitrates interaction between applications and the current input method. You can retrieve an instance of this i

sinat_31820805的博客 6383

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

InputMethodManager的用法,键盘,隐藏

转自http://blog.sina.com.cn/s/blog_75992b660101lvtz.html   InputMethodManager imm = (InputMethodManager)getSystemService(SendActivity.this.INPUT_METHOD_SERVICE); //隐藏键盘 imm.hideSoftInputF

再见理想 2031

[Android] InputMethodManager内存泄露现象及解决 输入法造成的内存泄露

当遇到这个输入法造成的内存泄露的时候,我表示一脸惊讶,因为我整个Activity中没有如何一个输入类控件,更不存在使用输入键盘。但是内存就这样不知不觉的泄露了。既然遇到了问题,我们就要寻求解决方案。 先看一下内存泄露对象InputMethodManager的引用路径 要想让Activity释放掉,思路就是将path togc这个链路剪断就可以.在这个bug中这个链路上有两个节点mContext(

qq_26585943的博客 6277

Android 3.0 r1中文API文档(103) —— InputMethodManager [输入法]

前言   本章内容是android.view.inputmethod.InputMethodManager,为输入法相关章节,版本为Android 3.0 r1,翻译来自"六必治",欢迎大家访问他的博客:http://www.cnblogs.com/zcmky/,再次感谢"六必治" !期待你加入Android API 中文的翻译,联系我over140@gmail.com。   声明  ...

weixin_34032827的博客 240
上一篇: WinCE6.0 KITL 分析宝典
下一篇: 人生最不值得你去做的30件事(是程序员的我们值得一看)
普通网友
普通网友 领域专家: 编程技术技术领域 领域专家: 编程技术技术领域
博客等级 码龄25年 2837粉丝 6原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值