Esempio n. 1
0
        private static void keyboardTest(VMulti vmulti)
        {
            System.Diagnostics.Process.Start("notepad.exe");

            System.Threading.Thread.Sleep(3000);

            KeyboardReport report = new KeyboardReport();

            report.keyDown(KeyboardKey.H);
            vmulti.updateKeyboard(report);
            report.keyUp(KeyboardKey.H);
            report.keyDown(KeyboardKey.E);
            vmulti.updateKeyboard(report);
            report.keyUp(KeyboardKey.E);
            report.keyDown(KeyboardKey.L);
            vmulti.updateKeyboard(report);
            report.keyUp(KeyboardKey.L);
            vmulti.updateKeyboard(report);
            report.keyDown(KeyboardKey.L);
            vmulti.updateKeyboard(report);
            report.keyUp(KeyboardKey.L);
            report.keyDown(KeyboardKey.O);
            vmulti.updateKeyboard(report);
            report.keyUp(KeyboardKey.O);
            report.keyDown(KeyboardModifier.LShift);
            report.keyDown(KeyboardKey.Number1);
            vmulti.updateKeyboard(report);
            report.keyUp(KeyboardModifier.LShift);
            report.keyUp(KeyboardKey.Number1);
            vmulti.updateKeyboard(report);

            System.Threading.Thread.Sleep(4000);
            report.keyDown(KeyboardModifier.LWin);
            report.keyDown(KeyboardKey.D);
            vmulti.updateKeyboard(report);
            report.keyUp(KeyboardModifier.LWin);
            report.keyUp(KeyboardKey.D);
            vmulti.updateKeyboard(report);
        }
Esempio n. 2
0
 public bool reset()
 {
     report = new KeyboardReport();
     return(true);
 }
Esempio n. 3
0
 private VmultiKeyboardHandler()
 {
     this.report         = new KeyboardReport();
     this.inputSimulator = new InputSimulator();
 }