Package winjava.userinput

Examples of winjava.userinput.KEYBDINPUT


public class Teclado {
    public static boolean primirTecla(int tecla){
        if(tecla >= 'a' && tecla <= 'z')
            return primirTecla(tecla+'A'-'a');
        KEYBDINPUT[] inputs = new KEYBDINPUT[1];
        inputs[0] = new KEYBDINPUT();
        inputs[0].type = INPUT.INPUT_KEYBOARD;
        inputs[0].wVk = tecla;
        return KeyboardInput.SendInput(inputs) == 1;
    }
View Full Code Here


    }
    public static boolean soltarTecla(int tecla){
        if(tecla >= 'a' && tecla <= 'z')
            return soltarTecla(tecla+'A'-'a');
        KEYBDINPUT[] inputs = new KEYBDINPUT[1];
        inputs[0] = new KEYBDINPUT();
        inputs[0].type = INPUT.INPUT_KEYBOARD;
        inputs[0].wVk = tecla;
        inputs[0].dwFlags = KEYBDINPUT.KEYEVENTF_KEYUP;
        return KeyboardInput.SendInput(inputs) == 1;
    }
View Full Code Here

TOP

Related Classes of winjava.userinput.KEYBDINPUT

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.