Subversion Repositories group.electronics

Rev

Rev 176 | Rev 178 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 176 Rev 177
Line 128... Line 128...
128
            return "Mouse:" + this.button + "=" + base.value + "\n";
128
            return "Mouse:" + this.button + "=" + base.value + "\n";
129
        }
129
        }
130
    }
130
    }
131
 
131
 
132
    public class CommandTrackIRKey : Command {
132
    public class CommandTrackIRKey : Command {
133
        OSInput.VirtualKeyCodes key;
133
        VirtualKeyCode key;
134
        OSInput osi;
-
 
135
 
134
 
136
        public CommandTrackIRKey(OSInput.VirtualKeyCodes vkey) : base() {
135
        public CommandTrackIRKey(VirtualKeyCode vkey) : base() {
137
            this.key = vkey;
136
            this.key = vkey;
138
            this.osi = new OSInput(vkey, true);
-
 
139
        }
137
        }
140
 
138
 
141
        public override int Send() {
139
        public override int Send() {
142
            if (this.value == 1) {
140
            if (this.value == 1) {
-
 
141
                Globals.SendKey.Keyboard.KeyDown(VirtualKeyCode.CONTROL);
143
                this.osi.Send();
142
                Utils.delayms(1);
-
 
143
                Globals.SendKey.Keyboard.KeyPress(key);
-
 
144
                Globals.SendKey.Keyboard.KeyUp(VirtualKeyCode.CONTROL);
144
                return 0;
145
                return 0;
145
            }
146
            }
146
            return 1;
147
            return 1;
147
        }
148
        }
148
 
149