ime

How to Determine Text Cursor Position in Windows

你说的曾经没有我的故事 提交于 2020-01-12 16:49:09
问题 What is the best way to determine the screen co-ordinates of the currently active text input cursor? I need this for an in-line transliteration program so that I can display some suggestions options to the user as the text is entered. 回答1: First attach the thread input to the active application (AttachThreadInput). Then get the caret's position with GetCaretPos. The position is in client coordinates, call GetFocus to have the handle to the window that has the caret, then convert the

IME in Android Studio emulator not responding to Shift-B on keyboard

一笑奈何 提交于 2020-01-05 07:41:09
问题 I noticed that Shift-B is not being recorded or received on EditTexts when I am using the emulator with my physical keyboard. Keyboard works fine elsewhere in all other programs - "B" - see! Lower-case ''b' works fine everywhere All other SHIFT alphabet characters work from the keyboard except "B" Clicking on shift-B on the IME (soft keyboard) works fine When pressing SHIFT-b, the onKeyListener.onKey() receives a keyCode of 0 I have used Android Studio and the Emulator extensively for a year

“IME died” and android.os.DeadObjectException

一笑奈何 提交于 2020-01-01 09:48:10
问题 I'm testing my game on different devices and one of them (Asus Garmin A10) crashes randomly (3/5 times) when the user change the volume (up/down) or push the menu button or similar. It could be a native crash because I'm not receiving the ACRA logcat (the cellphone is far from me, I've just ACRA for its remote debug). The user is telling me what happens. On my HTC I have just an annoying warning, but the game runs well, nothing happens. This is the warning: 10-31 19:52:29.547: W

In Idle cannot access RichTextControl or IME will not work

戏子无情 提交于 2019-12-31 04:51:11
问题 When reading some RichTextControl properties inside Application.Idle some IME won't work. Given this simple code: _richTextControl = new RichTextControl(); Application.Idle += delegate(object sender, EventArgs e) { btnCopy.Enabled = _richTextControl.SelectionLength > 0; btnPaste.Enabled = _richTextControl.CanPaste(); }; It'll work fine with most IME I tried but, at least, for Chinese (Traditional, Taiwan) with Microsoft Chinese Traditional Array (6.0) and Chinese Traditional DaYi (6.0) it'll

force dialog input to require fullscreen ime soft keyboard in landscape

岁酱吖の 提交于 2019-12-24 10:05:49
问题 I have a dialog box with an input, I have to automatically pop up the soft keyboard, current code: final EditText input = new EditText(this); final AlertDialog dialog = new AlertDialog.Builder(ScActivity.this) .setMessage(message) .setView(input).setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow

Changing IME Language in java swing application

萝らか妹 提交于 2019-12-24 06:44:51
问题 I am building a Text Editor in Java(Swing) having an EditorPane to type the text and a Menu containing JRadioButtonMenuitems. Like Menu is "Language" and JRadiobuttonMenuitems under "Language" are "Spanish","Japanese","English" etc the scenario is that when user clicks and select any JRadioButtonMenuItem the system must change its IME as per the selected language. Like if user click and select Japanese option Editor must change the IME to Japanese for current process and allow user to enter

Windows IME: custom Korean virtual keyboard

夙愿已清 提交于 2019-12-23 12:47:58
问题 I have problem with Korean Windows IME. I am designing a virtual (screen/software) keyboard for a piece of embedded software. I rely on Windows IME and it seemed to work fine for Japanese and Chinese languages. It also works perfectly with Korean if I am using a physical keyboard. But when I click a virtual keyboard button, the mouse events seem to interfere with IME and basically just cancel the composition. WM_IME_ENDCOMPOSITION message fires every time the mouse button is clicked. As a

What exactly does ime() in selenium do?

三世轮回 提交于 2019-12-23 09:00:58
问题 driverInstanceName.manage().ime().getActiveEngine() driverInstanceName.manage().ime().activateEngine(engine) getting exceptions like below, org.openqa.selenium.WebDriverException: unimplemented command: session/3f83e50445b7c179249aada785c8e910/ime/activate Command duration or timeout: 2 milliseconds Understood that it is related to inputting data but not sure how it is relevant in selenium, tried finding the answer in many forums but to no avail. 回答1: Got interested to learn more about ime()

How to create custom keyboard with Russian Alphabet?

不想你离开。 提交于 2019-12-22 16:47:34
问题 I am beginner in android and working on custom keyboard. I have created in English language. Now I want to add some more languages like Russian and Arabic. I have taken reference from http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615 My question is how to find russian alphabet codes for Android? should I use utf-8, unicode or something else? I have made XML file for Enlgish like this <Row> <Key android:codes="97" android:keyLabel="a" android:keyEdgeFlags="left"

How to create custom keyboard with Russian Alphabet?

时光毁灭记忆、已成空白 提交于 2019-12-22 16:47:07
问题 I am beginner in android and working on custom keyboard. I have created in English language. Now I want to add some more languages like Russian and Arabic. I have taken reference from http://code.tutsplus.com/tutorials/create-a-custom-keyboard-on-android--cms-22615 My question is how to find russian alphabet codes for Android? should I use utf-8, unicode or something else? I have made XML file for Enlgish like this <Row> <Key android:codes="97" android:keyLabel="a" android:keyEdgeFlags="left"