Esempio n. 1
0
 public void Perform()
 {
     if (type == "Key press")
     {
         VirtualKeyboard.PressKey(keys, keyModifier);
     }
     if (type == "Timer")
     {
         Thread.Sleep((int)(timer * 1000));
     }
 }
Esempio n. 2
0
        public void Perform()
        {
            switch (Type)
            {
            case "Key press":
                VirtualKeyboard.PressKey(Keys, KeyModifier);
                break;

            case "Timer":
                System.Threading.Thread.Sleep((int)(Timer * 1000));
                break;
            }
        }
Esempio n. 3
0
        public void perform()
        {
            switch (type)
            {
            case "Key hold":
                VirtualKeyboard.HoldKey(keys, keyModifier);
                break;

            case "Key press":
                VirtualKeyboard.PressKey(keys, keyModifier, timer);
                break;

            case "Key release":
                VirtualKeyboard.ReleaseKey(keys, keyModifier);
                break;

            case "Timer":
                System.Threading.Thread.Sleep((int)(timer * 1000));
                break;
            }
        }