Exemplo n.º 1
0
        public void PressVolumeDownKey()
        {
            PressKeyCmd cmd = new PressKeyCmd();

            cmd.FunctionKey = 13;
            cmd.KeyCode     = 0;
            cmd.StatusCode  = 0;
            sendCommand(cmd);
        }
Exemplo n.º 2
0
        public void PressKeyEx(int key, int status)
        {
            PressKeyCmd cmd = new PressKeyCmd();

            cmd.FunctionKey = 17;
            cmd.StatusCode  = status;
            cmd.KeyCode     = key;
            sendCommand(cmd);
        }
Exemplo n.º 3
0
        public void PressVolumeUpKey()
        {
            PressKeyCmd cmd = new PressKeyCmd();

            cmd.FunctionKey = 12;
            cmd.KeyCode     = 0;
            cmd.StatusCode  = 0;
            sendCommand(cmd);
            //sendCommand("2", "12", "", "0");
        }
Exemplo n.º 4
0
        public void PressMuteKey()
        {
            PressKeyCmd cmd = new PressKeyCmd();

            cmd.FunctionKey = 11;
            cmd.KeyCode     = 0;
            cmd.StatusCode  = 0;
            sendCommand(cmd);
            //sendCommand("2", "11", "", "0");
        }
Exemplo n.º 5
0
        public void PressSpeakerKey()
        {
            PressKeyCmd cmd = new PressKeyCmd();

            cmd.FunctionKey = 16;
            cmd.KeyCode     = 0;
            cmd.StatusCode  = 0;
            sendCommand(cmd);
            //sendCommand("2", "16", "", "0");
        }
Exemplo n.º 6
0
        public void PressEndKey()
        {
            PressKeyCmd cmd = new PressKeyCmd();

            cmd.FunctionKey = 4;
            cmd.KeyCode     = 0;
            cmd.StatusCode  = 0;
            sendCommand(cmd);
            //sendCommand("2", "4", "", "0");
        }
Exemplo n.º 7
0
        public void MoveTrackballRight()
        {
            PressKeyCmd cmd = new PressKeyCmd();

            cmd.FunctionKey = 9;
            cmd.KeyCode     = 0;
            cmd.StatusCode  = 0;
            sendCommand(cmd);
            //sendCommand("2", "9", "", "0");
        }
Exemplo n.º 8
0
        public void ClickTrackball()
        {
            PressKeyCmd cmd = new PressKeyCmd();

            cmd.FunctionKey = 5;
            cmd.KeyCode     = 0;
            cmd.StatusCode  = 0;
            sendCommand(cmd);
            //sendCommand("2", "5", "", "0");
        }
Exemplo n.º 9
0
 public void PressKey(String key)
 {
     if (key != null && key.Length > 0)
     {
         PressKeyCmd cmd = new PressKeyCmd();
         cmd.FunctionKey = 17;
         cmd.StatusCode  = 0;
         cmd.KeyCode     = (int)key[0];
         sendCommand(cmd);
     }
 }