I'm making an android application using unity3d.
The keyboard is being used to enter a Name for a digital Pet.
The code I am using can be seen below, it is triggered by the user pressing a button in a menu screen.
TouchScreenKeyboard keyboard = TouchScreenKeyboard.Open("Franklin");
if (keyboard != null)
SetPetName(keyboard.text);
Once the button has been pressed the Pet's name has been changed to 'Franklin' but no keyboard appear on screen.
I can't see where I am going wrong here, and I have not been able to find any similar issues posted.
One thought I had was that it may be in some way related to the fact I am locking the screen orientation to horizontal, but this is something i need to do on my application.
Thanks in advance for any help you can offer.
The comment above solves this issue. It was that TouchScreenKeyboard.Open doesn't work in the editor. Once built to my device it was all OK.
Related
Im trying some different alternatives for onscreen keyboard for our desktop application that is being run on a windows 8 tablet without keyboard.
So far Tabtip.exe have been working best but im open to other solutions.
The problem i have is when the user clicks on a textbox in the application and i show the onscreen keyboard, the keyboard hides the textbox.
How do fix this in a good way?
Is it something that windows can handle automatically? Some applications like outlook and word gets a "splitscreen" with a scroll bar in the upper part where the applications is and the keyboard in the lower part. I want a solution like that to. How do they do it?
One solution could be to always move my window up a set amount of pixels that is the same as the keyboard height. But i don't want to move the application if the keyboard doesn't cover the textbox.
But how do i determine how high the keyboard is? is it always the same height? How do i detect where the window is?
Any other solutions?
I'm Building a very basic game for windows phone based on one I created for iOS. In iOS there is a event for when the screen is pressed. I have looked and cannot find a equivalent in windows phone so have decided to use a large button placed over the entire of the view however i have the issue that when i press the button it fills out in the accent colour. i have tried changing the clickmode .ect to solve this as suggested in some older posts for windows phone 7 however none of these seem to be working. Any help is appreciated
Thanks
Found a better solution for my requirements.
Realised that if on the root of the application page i can set a Tap event to fire code so his works like touchesBegan on iOS
I want to use virtual keyboardfound here http://www.codeproject.com/KB/miscctrl/touchscreenkeyboard.aspx
as shown as demo i have to fix this keyboard and want to enter values many forms by keeping this keyboard in my systems home screen. i tried copying the form and pasting it is not working so please help me in this regards thanks in advance.
I'm doing an application like Google Transliteration (Google input tools) tool in C#. It displays the suggestion window on the top of whatever window we are typing (finds caret location & display just window below it). But the focus (foreground process) is still on the application in which we type (for eg. Ms Word, Notepad etc.).
I want to implement these features of Google Transliteration:
It captures the keystrokes before another process gets it.
While renaming a folder or file, we can select words from the suggestions
window show up by using up & down arrow keys and press enter key. But the
rename text field will be still active. The keystrokes will be
captured before it reaches rename text field.
I want to implement a universal text suggestion list (window) like that of Google Transliteration.
How to capture keystrokes before another process gets it (block foreground process from getting it)? (Main Question)
How to capture keystrokes (up & down arrow keys and enter key) and select an option from the words list without focusing on the 'words list' window?
(Caret should remain active and blinking on the foreground process text field. eg. Folder rename text field)
Someone please help me to solve this problem.
I already found this one, but it not helped me to solve my problem.
Capturing keystrokes without focus
You mix two different problems. The first problem - to catch keyboard input - nothing to do with the second - to make an unfocusable window.
The solution to the first problem is very simple - as stated in your link, there is no other way to do it other than Low-Level windows hooks.
The second problem is more difficult, the solution may require a little experimentation, creativity and knowledge of WinAPI. Examples are here, here and here.
I have written an application that currently handles clicks from multiple mouse devices.
I used this project and modified to handle mouse clicks as apposed to keyboards.
This is working fine, however now I need to know if there is a way to suppress a click event if it has been handled by my app. The app is a quiz game so the idea is that the quiz master will have (and still be able to use) 1 mouse, and the other contestants will have their own mouse (as buzzers). So when they buzz in, I don't want the mouse click events to fire in the operating system (or at least this application).
The concept is the familiar override of void WndProc(ref Message message), and so I have tried not calling base.WndProc(ref Message) when I don't want the click events to fire, but this has not worked.
Can anybody point me in the right direction here?
Should I be going down the windows hook route? I have looked at this, but I can't seem to work out how I could hook to each mouse device individually.
Any help would be greatly appreciated.
Edit:
This is a Windows Form UI project, and not WPF. So the MultiPoint SDK from Microsoft won't work.
The solution to this lies within not WndProc, but PreFilterMessage(). By intercepting messages before they even reach the form, you can remove them from the message pump causing them to never reach the control that was clicked. This also works for child controls within the form.
I answered this and posted the full source in the following question:
C# Get Mouse handle (GetRawInputDeviceInfo)