keyboard

alternative to the fscanf()/vscanf() functions family for using an alternative validation key or how to create a custom language layout?

北城以北 提交于 2019-12-25 01:48:18
问题 I am rather knew in C. And the only way I know for setting a variable from stdin is by using the fscanf() / vscanf() functions family. DOS operating systems are seeing a resurgence in the embedded market. The device which I am using is programmatically compatible with DOS and use a NEC V30Mx which feature the 80286 instruction set. The problem is the built-in keyboard doesn’t feature the enter key and instead use the EXE key which enter the 0x1C00 key code (Alt enter) . So when I write a

Windows Forms custom control: focus and cursor keys without UIPermissionWindow.AllWindows

倾然丶 夕夏残阳落幕 提交于 2019-12-25 01:44:44
问题 I want to write a custom control (a text editor) for Windows Forms, which should include the following functionality: Gets the keyboard focus, when you click on it with the mouse Sees all keyboard input (including cursor keys), when it has the focus, Can run in a semi-trusted environment, with UIPermissionWindow.SafeTopLevelWindows (i.e. it shouldn't require UIPermissionWindow.AllWindows ) Is there any example of doing this? Some of the methods which I might want to use, like Control.Focus()

Change the color of the iPhone keyboard (working with Phonegap/Cordova)

徘徊边缘 提交于 2019-12-25 01:15:49
问题 As the title states: is it possible to change the keyboard color to black (some call it transparent?) when working with Phonegap/Cordova? I've googled a lot but I can't seem to find anything about it. So can it be done? Either with HTML5/jquery or in XCode? A picture of what I'm looking for: 回答1: To use a dark theme on the iOS Keyboard, you can follow this article. You can add the Objective-C code to your PhoneGap project's AppDelegate.m 来源: https://stackoverflow.com/questions/11799840/change

Binding Keyboard to Onclick Event

与世无争的帅哥 提交于 2019-12-25 00:27:25
问题 I am having problems with a jquery slideshow where I want to bind next/right to make the images jump forwards/back. I used the following code to attempt to do it but it simply refreshes the page. <script> $(function() {$(document).keyup(function(e) { switch(e.keyCode) { case 37 : window.location = $('#prev a').attr('href'); break; case 39 : window.location = $('#next a').attr('href'); break; }});}); </script> The I was attempting to call were: <a href='#' id='prev' onclick='show_image($prev);

Android set default keyboard

佐手、 提交于 2019-12-24 21:42:40
问题 i want to set scandinavian keyboard as default keyboard on an android device and i want to do this by code. So i try with InputMethodManager : InputMethodManager mng = (InputMethodManager)getSystemService(LoginActivity.INPUT_METHOD_SERVICE); List<InputMethodInfo> m_list=mng.getInputMethodList(); and i find the method setInputMethod (IBinder token, String id) of the InputMethodManager class. But i don't find examples/documentation that explain me how to use it.Any suggestion? Thanks. 回答1: Hi

The lowest level function to handle a user input

冷暖自知 提交于 2019-12-24 21:40:19
问题 The following code I have reads the input from user similar to gets function in C language. section .text global _start _start: mov eax, 3 ; Read user input into str mov ebx, 0 ; | mov ecx, str ; | <- destination mov edx, 100 ; | <- length int 80h ; \ mov eax, 1 ; Return mov ebx, 0 ; | <- return code int 80h ; \ section .data str: times 100 db 0 ; Allocate buffer of 100 bytes I am not sure how Linux is handling my code, but I am curious how this code is handled on an Intel machine natively

How to catch key events while soft keyboard is open android?

落爺英雄遲暮 提交于 2019-12-24 20:13:56
问题 I know how to catch key events in my activity by overriding public boolean onKeyDown(int keyCode, KeyEvent event) The problem is when the soft keyboard is open this method is not even called... any way to catch the event anyway? 回答1: Yes, when we speak about soft keyboard it's means that no so easy to use it. By the way methods that relate to soft keyboard take no expected result. For example: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { //do something return super

I want to make a virtual keyboard. Do I need to send WM_KEYDOWN to the current active window or HWND_BROADCAST?

不想你离开。 提交于 2019-12-24 19:53:56
问题 I am making an app that simulates a keyboard. I will do it by sending WM_KEYDOWN to a window, but I am not sure where to send the message. to the currently active window or to HWND_BROADCAST? Here is an other question I posted, related to this one. If I send a WM_KEYDOWN message (using wndproc) will the computer hold the key down until I send WM_KEYUP? 回答1: If make a generic virtual keyboard and not worry about which window is active (which is the window manager's business), you can use

Intercept keyboard input using current keyboard layout

廉价感情. 提交于 2019-12-24 19:23:53
问题 I've implemented a low-level keyboard hook using SetWindowsHookEx() function. It works fine and returns a virtual key code for each keystroke. I can convert this virtual key code to a System.Windows.Input.Key using KeyInterop.KeyFromVirtualKey(). But the target is to get a symbol that corresponds to this virtual key code in current keyboard layout. I.e. for German layout I want to get "Y" for Key.Z, "Z" for Key.Y. Does anyone can help? Thank you. 回答1: call the GetKeyboardLayout to retrieve

How to open keyboard on android in UNITY?

依然范特西╮ 提交于 2019-12-24 19:16:03
问题 I have a simple button . I want to when I click it this must open a keyboard.I tried TouchScreenKeyboard.Open("") ..but this opens a new page (could not change design) with keyboard. I just need a keyboard. 回答1: Looks like you forgot to add the second parameter which defines what keyboard to use. Try to follow the example from the documentation: using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { public string stringToEdit = "Hello World"; private