virtual-keyboard

Java: Add a Global Mouse Listener

主宰稳场 提交于 2019-12-01 22:58:25
I am developing a virtual keyboard using java applet. How do I set global mouse listener, so that I can get all mouse events inside my applet even if my applet is not the active window. And is there any way to get the focussed textbox globally, so that I can feed input to that textbox from my virtual keyboard. Thanks. You need to make a hook for that you need native code for windows machine take a look here 来源: https://stackoverflow.com/questions/4673061/java-add-a-global-mouse-listener

CodenameOne: VKB changes the screen

守給你的承諾、 提交于 2019-12-01 13:28:34
I have a an app developed on CodenameOne platform where I have textfields for manuel input. Each time when the VKB shows on android, the contents of the screen are pushed to bottom and especially the textfield becomes so thin that no characters can be seen. How can I prevent this? On android when the VKB is launched the Form gets a sizeChanged event, to prevent this behavior you can declare the textfields parent container as a scrollable Y container BoxLayout Y 来源: https://stackoverflow.com/questions/34577064/codenameone-vkb-changes-the-screen

CodenameOne: VKB changes the screen

◇◆丶佛笑我妖孽 提交于 2019-12-01 10:49:32
问题 I have a an app developed on CodenameOne platform where I have textfields for manuel input. Each time when the VKB shows on android, the contents of the screen are pushed to bottom and especially the textfield becomes so thin that no characters can be seen. How can I prevent this? 回答1: On android when the VKB is launched the Form gets a sizeChanged event, to prevent this behavior you can declare the textfields parent container as a scrollable Y container BoxLayout Y 来源: https://stackoverflow

Determine if Windows 10 Touch Keyboard is Visible or Hidden

筅森魡賤 提交于 2019-11-29 11:54:10
I am trying to find out if the windows 10 virtual touch keyboard is visible or not to know whether to open it or not from my application. THe following code has worked fine up until the latest Windows 10 update 15063 or possible the one right before it. Seems like Microsoft changed something with the window styles possibly but I can't figure it out. public static bool IsKeyboardVisible() { IntPtr keyboardHandle = GetKeyboardWindowHandle(); // Specifies we wish to retrieve window styles. int GWL_STYLE = -16; //The window is disabled. See http://msdn.microsoft.com/en-gb/library/windows/desktop

How can I send keyboard commands (hold,release,simultanous) with a python script?

寵の児 提交于 2019-11-28 22:08:08
I want to send virtually the command like this: when keypress=="a" #if entered key is "a" send {ALT+TAB} # send ALT and TAB simultaneously sleep(2) #wait for 2 sec send {"I love my Country",0.1} #send all strings at 0.1 sec wait key_down("BACKSPACE",1) #hold down backspace key for 1 sec send{ALT+F4} #send ALT and F4 simultaneously For all, or a particular application, also opengl games as well. I tried SendKeys.py but there is no simultaneously input function and no key_down method for sending holding down a key command. All advice will be greatly appreciated. I know how to do it with ctypes.

iOS 7 input elements moving fixed positioned elements

大兔子大兔子 提交于 2019-11-28 16:44:41
I'm trying to recompile an app for iOS 7, since nothing of the old one works so far. One of the many problems is that I'm using some inputs inside UIWebViews. Text inputs, pickers etc. Now, when the iOS 7 shining white keyboard appears, all the bottom fixed elements in the webpage (such as, confirm buttons) are scrolled upward, as if the 'top' of the virtual keyboard is the new bottom of my UIWebView. This is a substantially different behavior from iOS6.x Is there any magic trick to make the virtual keyboard behavior work like it used to, without injecting JS/CSS to the webView? This fixed the

SendKeys alternative that works on Citrix

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 19:52:47
I recently developed a virtual keyboard application for a customer. The program is working fine with almost all programs, but certain commands like {ENTER} or {DEL} are not working with Citrix. Is there are workaround or an alternative to SendKeys ? Edit 1: I tried the SendInput method (Windows Input Simulator uses SendInput) and the DEL key as well as the arrow keys are still not working. The ENTER key works however. Edit 2: Solved it. Tested with two different versions of Citrix. This question helped me a lot. : Citrix thin clients uses the scancode param of keybd_event even when MS says it

How to press Ctrl+A to select all content in a page by Selenium WebDriver using Java

孤街醉人 提交于 2019-11-27 15:01:49
I want to select all content by pressing Ctrl + a from keyboard by using WebDriver with Java. I wrote the following code: Actions actionObj = new Actions(driver); actionObj.keyDown(Keys.CONTROL) .sendKeys(Keys.chord("A")) .keyUp(Keys.CONTROL) .perform(); Unfortunately, it did not work. What's the wrong in my WebDriver Java code? Nazeer Mohammed To Select whole page: driver.findElement(By.xpath("//body")).sendKeys(Keys.chord(Keys.CONTROL, "a")); cssSelector is faster than xpath. So it could be done by using CSSPath also. Below is the way: driver.findElement(By.cssSelector("body")).sendKeys(Keys

How can I send keyboard commands (hold,release,simultanous) with a python script?

只谈情不闲聊 提交于 2019-11-27 14:13:44
问题 I want to send virtually the command like this: when keypress=="a" #if entered key is "a" send {ALT+TAB} # send ALT and TAB simultaneously sleep(2) #wait for 2 sec send {"I love my Country",0.1} #send all strings at 0.1 sec wait key_down("BACKSPACE",1) #hold down backspace key for 1 sec send{ALT+F4} #send ALT and F4 simultaneously For all, or a particular application, also opengl games as well. I tried SendKeys.py but there is no simultaneously input function and no key_down method for

Buggy ListView makes me sad

风流意气都作罢 提交于 2019-11-27 06:53:39
I have a ListView where I've defined the layout of each item in a separate XML file. In this file I've included a RatingBar and an EditText . I've programmatically created 7-8 items in this ListView . When I scroll through them, it seems to be quite buggy. Here are some examples: If I set focus to the EditText in the first row and then scroll down the ListView , random EditTexts from other rows will have focus. It seems to be that the next EditText after the focused one disappears receives focus. Perhaps this is intentional, but, as a user, it seems very weird. If I set focus to an EditText ,