Keyboard on screen

Hello  everybody,
I’m trying to create a monitor keyboard (for touchscreen  devices) but currently I have inserted just 4 keys in order to find the  right method. I thought I could use dispatchEvent to simulate the  pressure exerted on a key of the keyboard every time I press a button  component on the screen. The simulation seems to work (as the listener I  have set on KEYDOWN events correctly detects the pressure on the key)  but the problem is I can’t write down anything...
Thanks  in advance to anyone who will be willing to help me! Here is the code
Of course all this should work on an AIR application created  with FLASH BUILDER (sdk 3.5)
Luca
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="300" height="200" initialize="createListener(event);">
    <mx:Button x="10"  y="100" label="A" id="key_A" click="this.dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false,65,65));"/>
    <mx:Button x="58"  y="100" label="B" id="key_B" click="this.dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false,66,66));"/>
    <mx:Button x="106" y="100" label="C" id="key_C" click="this.dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false,67,67));"/>
    <mx:Button x="154" y="100" label="D" id="key_D" click="this.dispatchEvent(new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false,68,68));"/>
    <mx:TextInput x="10" y="10" width="281" id="TextBox1"/>
    <mx:TextInput x="10" y="33" width="281" id="TextBox2"/>
    <mx:TextInput x="10" y="56" width="281" id="TextBox3"/>
    <mx:Script>
        <![CDATA[
            import flash.events.*;
            import mx.controls.Alert;
            private function createListener(e:Event):void {
                this.addEventListener(KeyboardEvent.KEY_DOWN, myClickHandler);
            private function myClickHandler(e:KeyboardEvent):void {
                if (e.keyCode == 65) {
                    Alert.show("E' stato premuto il tasto A  ");
                if (e.keyCode == 66) {
                    Alert.show("E' stato premuto il tasto B  ");
                if (e.keyCode == 67) {
                    Alert.show("E' stato premuto il tasto C  ");
                if (e.keyCode == 68) {
                    Alert.show("E' stato premuto il tasto D  ");
        ]]>
    </mx:Script>   
</mx:WindowedApplication>

Where can I change language since I use different languages it is still set po polish making typing in other languages hard
To change the spelling language you must change the keyboard. You do that via a little "globe" key once you have added other keyboards in Settings. Read the User Guide.

Similar Messages

  • HELP: iPhone 6 Keyboard/Touch Screen Not Working

    Hello.
    I recently acquired to an iPhone 6, which has been working properly for the last two weeks. Today, my keyboard/touch screen stopped working properly. When I am typing in iMessage, or trying to compose an email, enter a URL, or anything else that requires my touch keyboard, my "123" button that switches to numbers, punctuation, and special characters does not open. I updated my software to iOS 8.3., which switched to a new and "improved" emoji keyboard, but I did this after my keyboard had already become unresponsive. If I click on the emjoi keyboard icon to switch over, the "ABC" button to swtich back to QWERTY is unresponsive. This is REALLY frustrating! The phone is two weeks old, and I cannot use to for a huge chunk of functionality.
    It's not a dead spot on the touch screen. When I am not trying to access the keyboard, that little bottom left corner works fine to open/use my Phone app.
    I really don't want to reset my phone. Any other ideas?
    I made a Genius Bar appointment for next Wednesday 4/15, but that seems like an eternity from now.
    Please help!

    To make sure that this is not software related, set it back to factory settings, without using any backup data afterwards. Set up the rest of the personal settings manually and test the Touch Screen . If it still does not work, this is a hardware issue and the phone has to be serviced by Apple or an Authorized Apple Service Provider:
    Use iTunes to restore your iOS device to factory settings - Apple Support
    Find an Apple Authorized Service Provider
    iPhone - Contact Support - Apple Support

  • Can I use a 15" MBP as keyboard and screen to work on bootable drive MBP 17

    Hi, all,
    I already asked this question in a post with other questions more prominant so I am trying this as a solo question. I have a MBP 17" intel Core Duo that will be going in for repairs. I have an OWC 1 TB drive formated to be bootable. Can I boot from the external HD from a 15" MBP Core Duo and use it essentially as a keyboard and screen and work on the 17" files with all the software or can I only transfer files to the 15"? The 17" has Leopard and Adobe CS3 (which I cannot do without) the 15" runs Tiger and I run CS2 on it.
    Thanks!

    Can I boot from the external HD from a 15" MBP Core Duo and use it essentially as a keyboard and screen and work on the 17" files with all the software
    Yes.
    (45230)

  • Foam sheet between keyboard and screen, Replacement?

    Hi,
    I'm wondering if anybody knows if this has a part number ? and where can
    I get one ?
    I'm wanting to know if I can get a factory replacement of the thin foam sheet
    that is part of the packing materials that goes between the keyboard and screen.
    You know, when your Powerbook was new, when you opened the lid
    for the first time, there was that thin foam sheet over the keyboard, speakers,
    trackpad the whole surface area. I guess it's more like the foam is the size of
    the whole screen area, to protect the screen.
    This may seem silly to want to replace this, but I have a PowerBook that's coming
    up on 3 years old and every time I have closed the lid (screen) I have put the thin
    foam in to protect the screen. So, the screen is perfect after 3 years.
    Much different than my co-workers PowerBooks. They didn't see any
    need for this foam and didn't use it and their screens are etched / scratched from
    the keys, mirror images of the keys scratched into their screens.

    Hi there,
    I'm not sure if Apple assigns part numbers for their packing materials, but you could either visit your local Apple store to see if they happen to have any of these lying around, or you could purchase a screen protector to do the job.
    I used the foam sheet for a few years, but lost it recently, so I went out and bought an iKlear Cleaning kit which included a polish cloth which is the size of the keyboard and trackpad area, and I find it does a fine job of protecting the screen.
    Go to klearscreen.com and have a look.

  • Mbp keyboard nonresponsive, screen freezes, ideas?

    My MBP keyboard and screen freezes; any ideas on a fix?

    Reset the SMC (may take 2-3 attempts) and also do a PRAM reset. Instructions are in Intel iMac SMC and PRAM resets. If that does not fix the problem then please post an EtreCheck report of your computer in your reply.

  • Resetting Keyboard and Screen Lights

    Is there a way to revert settings for changing brightness of keyboard and display to the default? I was changing the brightness for the keyboard and screen, and now I want it back to how it was because I don't think it is adjusting correctly now.

    You can try deleting the preferences file called something like:
    com apple bezel services.
    You may find one in your home directory>library folder>preferences
    Plus there may be one in:
    macintosh HD>library>preferences
    Delete both and re-boot. It may or may not cure your problem. It did it for me when mine went hay-wire.
    Phil

  • How to disable keyboard print screen option

    Dear All,
    In my application i want to disable keyboad print screen button programatically, if any one know pls guide me....
    Reagrds,
    Vijay

    Hi Vijay,
    to disable it just in your application is no good. You should disable it for the current user at all!
    Did you try to Google "disable keyboard print screen"? There are so many solutions listed...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • HT2693 keyboard and screen protector affects display on retina macbook?

    i have read the issue about the palm guard affecting the display here: http://support.apple.com/kb/TS4384
    I am just wondering if using keyboard and screen protector will have the same effect if i put it on and close the shell cover?

    If you want to try a hardware test, try holding down option-D (works for me for some reason). However...
    If a SMC reset doesn't fix anything, then I would take the machine into your local Apple Store or AASP. You shouldn't be having such problems with a new machine.
    Try the SMC reset first - I doubt that it will fix anything.
    Clinton

  • How to lock Keyboard or Screen

    Hi can any body tell me how to lock keyboard or screen in java
    i'm using jdk1.5
    Thanx

    You can't, using pure Java. You might be able to do it using JNI.

  • I just opened my new Mac Pro and I have a USB keyboard, not a bluetooth -- it doesn't recognize the USB keyboard and I can't get past the "bluetooth keyboard pairing" screen.

    I just opened my new Mac Pro and I have a USB keyboard, not a bluetooth -- it doesn't recognize the USB keyboard and I can't get past the "bluetooth keyboard pairing" screen.

    What specific KB?
    Do you know it works?
    I set my 2103 nMP with an older (black) Apple USB KB and it worked fine

  • Keyboard and screen not working

    hi everybody
    so i took my keyboard out with the laptop turned on to check my airport and now i got no screen and no keyboard
    help please

    Hi! Removing a component with the laptop on may well have fried it. You can try a pmu reset found HERE but if that doesn't fix it you may be screwed. Tom

  • Smashed my keyboard, the screen went weird, I think my computer is broken.

    I accidentally smashed my keyboard with a lot of pressure and the screen went striped with a steady beeping sound. I closed the lid and unplugged the charger and that was when the beeping stopped.
    I'm too afraid to open my computer again in fear that I might lose the data on my computer, so I'm not sure if it's broken or not.
    What should I do?

    I don't know how you accidentally smash a keyboard with a lot of pressure, but obviously that's the wrong thing to do with sensitive electronics. There's no way to know exactly what you broke. The motherboard is under there for one thing. As for your data, if it's a classic style MBP rather than a Retina, the hard drive is under the palm rest, so you may not have crunched the hard drive. You can take the drive out and try to read it on another machine by putting it in a USB enclosure.

  • In message mode how do I remove 2 keyboards from screen

    In message mode I have two keyboards on the screen.  The top one does not operate. How do I remove it?

    Hey 6bigdog6,
    Thanks for the question. It sounds like the album has been synced to your iPhone from iTunes. To delete synced photos, you’ll want to uncheck the album in iTunes:
    iTunes: Syncing photos
    http://support.apple.com/kb/ht4236
    To delete synced photos and videos from your device
    1. In iTunes, click the Device button in the upper right corner. (If viewing the iTunes Store, click the Library button in the upper-right corner first.)
    2. Click the Photos tab in the resulting window.
    3. Choose "Selected albums" and deselect the albums or collections you want to delete.
      Note: To delete all synced photos, deselect "Sync Photos from" and, when asked, click "Remove photos."
    4. Click Apply.
    Thanks,
    Matt M.

  • Keyboard Layout + Screen Sharing

    Hello all,
    I am using Screen Sharing.app to connect my local MacBook Pro (Lion/15"/Early 2010 with builtin US Keyboard) to a remote MacBook Pro (Lion/13"/2011 with builtin Japanese Keyboard) over iCloud.
    When I type the US keyboard of the local MBP, all the Cocoa applications on the remote MBP recognize the typed caracters as US layout. But when I type the US keyboard in X11.app on the remote MBP, X11 regards input characters as Japanese keyboard layout. It is very flustrating for me because I would like to use the US layout when I use X11 software such as emacs.
    Does anyone know how I can make the remote X11.app recognize the US keyboard of the local MBP? Any help?
    I have been suffering from the same problem with Snow Leopard + MobileMe.

    You might want to look at creating an xmodmap file.  Some Google searches should help.
    My limited use of xmodmap in the past has been to do simple things like change the capslock key to a control key.  I have not tried remapping an entire keyboard.  But in theory it should be possible, and my might even find an existing file that will provide the entire mapping you desire.
    Actually I seem to recall it was possible to use xmodmap to output the map for a keyboard, so if you have a setup where X11 is treating your keyboard as english (like your local system), you mght be able to dump the xmodmap, then transfer that the remote system, and have xmodmap on that system load up the saved map.  Just a thought.  "Some Assembly Required" :-)

  • Keyboard scratches Screen and Reinstall OSX takes 8 hours

    Only 2 months ago I bought a macbookpro. I was all excited, my first mac.
    2 months later...
    I had bought a case for it to protect it.
    I carry it in my backpack in a separate sleeve designed to not allow pressure on the device when carried in the backpack.
    The keyboard has completely scratched the screen...Thats PANTS!!!
    Also I installed java update and it completely rendered the java unusable and thus had to reinstall the whole OS...I need java because I am in a java programing class.
    To reinstall the OS it took over 8 hours..watching a little loader circle (throbber) go around and around over and over...I know this is not normal to take 8 hours to reinstall an OS...
    I called apple support and they wont do anything...
    Still no satisfaction and the thing runs slow as ****... Keep in mind that I am a computer technician of over 10 years... I have checked the system and cannot find any problems barring it being a hard drive issue which tests okay.
    Any ideas...
    thanks
    <Edited by Host>

    I am trying to understand your basic problems that you are reporting.
    Only 2 months ago I bought a macbookpro
    2 months later...
    I had bought a case for it to protect it.
    The keyboard has completely scratched the screen
    So, does that mean that the scratched screen issue happened "all at once"? 2 months ago to 2 months later sounds like you are talking about "today" or thereabouts.
    I carry it in my backpack in a separate sleeve designed to not allow pressure on the device when carried in the backpack.
    What does "it" refer to?
    1) The MBP
    2) The case that you purchased "2 months later"
    3) The MBP in the case that you purchased "2 months later"
    Or is the backpack the case that you purchased "2 months later"?
    Also I installed java update and it completely rendered the java unusable and thus had to reinstall the whole OS
    Ok, so live learn and perhaps next time read first read "Java Frequently Asked Questions (FAQ) for developers" (http://developer.apple.com/java/faq/#remove), where your issue is clearly explained and likely could have been avoided.
    How can I switch between multiple versions of Java on my Mac?
    The Java Preferences application allows users to choose which version is used by applications, Applets, and command-line tools. Apple developer tools such as Jar Bundler and Xcode both allow you to request a minimum or specific Java version for double-clickable applications. Please see the Java 1.4 Info.plist Dictionary Keys documentation for details.
    Can I remove a Java update after I've installed it?
    Java on Mac OS X is updated incrementally through numerous releases. Therefore, the only way to revert to an earlier Java installation is to reinstall the operating system. The same applies for any other Java-related Software Updates or Developer Previews. For this reason, it is strongly recommended that Developer Previews of Java on Mac OS X be installed on non-critical systems.
    Sometimes a little research goes a long way.
    Yes I am a computer technician....
    I know you are. That is why I stated:
    How about:
    Mac OS X 10.6 Snow Leopard Installation and Setup Guide
    (http://manuals.info.apple.com/enUS/Snow_Leopard_InstallationInstructions.pdf)
    I didn't want to mince words with a fellow as savvy and experienced as you, just trying to provide a link to a document. I understand your are frustrated; it might help to sublimate some of that energy into a focused dialogue. Apparently you are in school (java programing class / backpack), so it is also good time to put on the "big-boy pants" and the "thinking hat".

Maybe you are looking for