From: <an...@us...> - 2008-02-09 16:10:26
|
Revision: 1353 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1353&view=rev Author: and-81 Date: 2008-02-09 08:10:18 -0800 (Sat, 09 Feb 2008) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Documentation/new.html trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.Designer.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs trunk/plugins/IR Server Suite/IR Server Suite.sln Modified: trunk/plugins/IR Server Suite/Documentation/new.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/new.html 2008-02-09 14:42:42 UTC (rev 1352) +++ trunk/plugins/IR Server Suite/Documentation/new.html 2008-02-09 16:10:18 UTC (rev 1353) @@ -5,9 +5,14 @@ <H2>What's new?<BR><HR COLOR="RED"></H2> <!-- -<LI>Macros: Major overhaul of macro and command structures (WARNING: This breaks compatibility with older macro files).</LI> -<LI>Macros: Variable assignment, a data stack and conditional execution of macros is now available. See documentation for more info.</LI> +<P>Version 1.0.5.0 +<UL> +<LI>Macros: Major overhaul of macro and command structures (WARNING: This breaks compatibility with existing macro files).</LI> +<LI>Macros: Variable assignment, a data stack and conditional execution statements in macros is now available. See documentation for more info.</LI> <LI>Macros: Stack tracing macro execution for loop detection has been removed now that legitimate recursion is provided for through variables and conditional statements.</LI> +<LI>New Command: Send WakeOnLan.</LI> +</UL></P> +<BR> --> <P>Version 1.0.4.2 @@ -27,6 +32,7 @@ <LI>MediaPortal plugins: New macro commands (Send MP Action and Send MP Message).</LI> <LI>Translator: Can create a shortcut on the users desktop to launch a macro.</LI> <LI>Documentation: New documentation areas (Troubleshooting FAQ) and improvements.</LI> +<LI>MCE Remote Receiver: Can now set remote and keyboard repeat rates to mimic system keyboard repeat rate settings.</LI> </UL></P> <BR> Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Properties/AssemblyInfo.cs 2008-02-09 14:42:42 UTC (rev 1352) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Properties/AssemblyInfo.cs 2008-02-09 16:10:18 UTC (rev 1353) @@ -20,6 +20,9 @@ // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: GuidAttribute("A03753AF-FBBF-44e0-9964-144C48A4D2CF")] + // Version information for an assembly consists of the following four values: // // Major Version @@ -33,4 +36,3 @@ [assembly: AssemblyFileVersion("1.0.4.2")] [assembly: CLSCompliant(true)] -[assembly: GuidAttribute("A03753AF-FBBF-44e0-9964-144C48A4D2CF")] Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.Designer.cs 2008-02-09 14:42:42 UTC (rev 1352) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.Designer.cs 2008-02-09 16:10:18 UTC (rev 1353) @@ -35,7 +35,7 @@ this.numericUpDownButtonHeldDelay = new System.Windows.Forms.NumericUpDown(); this.buttonOK = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); - this.groupBoxTimes = new System.Windows.Forms.GroupBox(); + this.groupBoxRemoteTiming = new System.Windows.Forms.GroupBox(); this.toolTips = new System.Windows.Forms.ToolTip(this.components); this.numericUpDownLearnTimeout = new System.Windows.Forms.NumericUpDown(); this.numericUpDownKeyHeldDelay = new System.Windows.Forms.NumericUpDown(); @@ -57,9 +57,11 @@ this.tabPageMouse = new System.Windows.Forms.TabPage(); this.labelMouseSensitivity = new System.Windows.Forms.Label(); this.checkBoxEnableMouse = new System.Windows.Forms.CheckBox(); + this.checkBoxUseSystemRatesRemote = new System.Windows.Forms.CheckBox(); + this.checkBoxUseSystemRatesKeyboard = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonRepeatDelay)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonHeldDelay)).BeginInit(); - this.groupBoxTimes.SuspendLayout(); + this.groupBoxRemoteTiming.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLearnTimeout)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownKeyHeldDelay)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownKeyRepeatDelay)).BeginInit(); @@ -77,7 +79,7 @@ this.labelButtonRepeatDelay.Location = new System.Drawing.Point(8, 24); this.labelButtonRepeatDelay.Name = "labelButtonRepeatDelay"; this.labelButtonRepeatDelay.Size = new System.Drawing.Size(128, 20); - this.labelButtonRepeatDelay.TabIndex = 0; + this.labelButtonRepeatDelay.TabIndex = 1; this.labelButtonRepeatDelay.Text = "Button repeat delay:"; this.labelButtonRepeatDelay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // @@ -86,7 +88,7 @@ this.labelButtonHeldDelay.Location = new System.Drawing.Point(8, 56); this.labelButtonHeldDelay.Name = "labelButtonHeldDelay"; this.labelButtonHeldDelay.Size = new System.Drawing.Size(128, 20); - this.labelButtonHeldDelay.TabIndex = 2; + this.labelButtonHeldDelay.TabIndex = 3; this.labelButtonHeldDelay.Text = "Button held delay:"; this.labelButtonHeldDelay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // @@ -105,7 +107,7 @@ 0}); this.numericUpDownButtonRepeatDelay.Name = "numericUpDownButtonRepeatDelay"; this.numericUpDownButtonRepeatDelay.Size = new System.Drawing.Size(80, 20); - this.numericUpDownButtonRepeatDelay.TabIndex = 1; + this.numericUpDownButtonRepeatDelay.TabIndex = 2; this.numericUpDownButtonRepeatDelay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDownButtonRepeatDelay.ThousandsSeparator = true; this.toolTips.SetToolTip(this.numericUpDownButtonRepeatDelay, "When the button is held this is the time between the first press and the first re" + @@ -131,7 +133,7 @@ 0}); this.numericUpDownButtonHeldDelay.Name = "numericUpDownButtonHeldDelay"; this.numericUpDownButtonHeldDelay.Size = new System.Drawing.Size(80, 20); - this.numericUpDownButtonHeldDelay.TabIndex = 3; + this.numericUpDownButtonHeldDelay.TabIndex = 4; this.numericUpDownButtonHeldDelay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDownButtonHeldDelay.ThousandsSeparator = true; this.toolTips.SetToolTip(this.numericUpDownButtonHeldDelay, "When the button is held this is the time between repeats"); @@ -143,7 +145,7 @@ // // buttonOK // - this.buttonOK.Location = new System.Drawing.Point(128, 208); + this.buttonOK.Location = new System.Drawing.Point(128, 240); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(64, 24); this.buttonOK.TabIndex = 1; @@ -154,7 +156,7 @@ // buttonCancel // this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.buttonCancel.Location = new System.Drawing.Point(200, 208); + this.buttonCancel.Location = new System.Drawing.Point(200, 240); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(64, 24); this.buttonCancel.TabIndex = 2; @@ -162,18 +164,18 @@ this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // - // groupBoxTimes + // groupBoxRemoteTiming // - this.groupBoxTimes.Controls.Add(this.labelButtonRepeatDelay); - this.groupBoxTimes.Controls.Add(this.numericUpDownButtonHeldDelay); - this.groupBoxTimes.Controls.Add(this.labelButtonHeldDelay); - this.groupBoxTimes.Controls.Add(this.numericUpDownButtonRepeatDelay); - this.groupBoxTimes.Location = new System.Drawing.Point(8, 40); - this.groupBoxTimes.Name = "groupBoxTimes"; - this.groupBoxTimes.Size = new System.Drawing.Size(232, 88); - this.groupBoxTimes.TabIndex = 1; - this.groupBoxTimes.TabStop = false; - this.groupBoxTimes.Text = "Remote button timing (in milliseconds)"; + this.groupBoxRemoteTiming.Controls.Add(this.labelButtonRepeatDelay); + this.groupBoxRemoteTiming.Controls.Add(this.numericUpDownButtonHeldDelay); + this.groupBoxRemoteTiming.Controls.Add(this.labelButtonHeldDelay); + this.groupBoxRemoteTiming.Controls.Add(this.numericUpDownButtonRepeatDelay); + this.groupBoxRemoteTiming.Location = new System.Drawing.Point(8, 72); + this.groupBoxRemoteTiming.Name = "groupBoxRemoteTiming"; + this.groupBoxRemoteTiming.Size = new System.Drawing.Size(232, 88); + this.groupBoxRemoteTiming.TabIndex = 1; + this.groupBoxRemoteTiming.TabStop = false; + this.groupBoxRemoteTiming.Text = "Remote button timing (in milliseconds)"; // // numericUpDownLearnTimeout // @@ -182,7 +184,7 @@ 0, 0, 0}); - this.numericUpDownLearnTimeout.Location = new System.Drawing.Point(152, 64); + this.numericUpDownLearnTimeout.Location = new System.Drawing.Point(152, 72); this.numericUpDownLearnTimeout.Maximum = new decimal(new int[] { 60000, 0, @@ -220,7 +222,7 @@ 0}); this.numericUpDownKeyHeldDelay.Name = "numericUpDownKeyHeldDelay"; this.numericUpDownKeyHeldDelay.Size = new System.Drawing.Size(80, 20); - this.numericUpDownKeyHeldDelay.TabIndex = 3; + this.numericUpDownKeyHeldDelay.TabIndex = 4; this.numericUpDownKeyHeldDelay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDownKeyHeldDelay.ThousandsSeparator = true; this.toolTips.SetToolTip(this.numericUpDownKeyHeldDelay, "When a key is held this is the time between repeats"); @@ -245,7 +247,7 @@ 0}); this.numericUpDownKeyRepeatDelay.Name = "numericUpDownKeyRepeatDelay"; this.numericUpDownKeyRepeatDelay.Size = new System.Drawing.Size(80, 20); - this.numericUpDownKeyRepeatDelay.TabIndex = 1; + this.numericUpDownKeyRepeatDelay.TabIndex = 2; this.numericUpDownKeyRepeatDelay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.numericUpDownKeyRepeatDelay.ThousandsSeparator = true; this.toolTips.SetToolTip(this.numericUpDownKeyRepeatDelay, "When a key is held this is the time between the first press and the first repeat"); @@ -260,12 +262,12 @@ this.checkBoxHandleKeyboardLocal.AutoSize = true; this.checkBoxHandleKeyboardLocal.Checked = true; this.checkBoxHandleKeyboardLocal.CheckState = System.Windows.Forms.CheckState.Checked; - this.checkBoxHandleKeyboardLocal.Location = new System.Drawing.Point(8, 136); + this.checkBoxHandleKeyboardLocal.Location = new System.Drawing.Point(8, 168); this.checkBoxHandleKeyboardLocal.Name = "checkBoxHandleKeyboardLocal"; this.checkBoxHandleKeyboardLocal.Size = new System.Drawing.Size(139, 17); this.checkBoxHandleKeyboardLocal.TabIndex = 2; this.checkBoxHandleKeyboardLocal.Text = "Handle keyboard locally"; - this.toolTips.SetToolTip(this.checkBoxHandleKeyboardLocal, "Act on key presses locally (on the machine IR Server is running on)"); + this.toolTips.SetToolTip(this.checkBoxHandleKeyboardLocal, "Act on key presses locally (on the machine Input Servie is running on)"); this.checkBoxHandleKeyboardLocal.UseVisualStyleBackColor = true; // // checkBoxHandleMouseLocal @@ -278,7 +280,7 @@ this.checkBoxHandleMouseLocal.Size = new System.Drawing.Size(126, 17); this.checkBoxHandleMouseLocal.TabIndex = 1; this.checkBoxHandleMouseLocal.Text = "Handle mouse locally"; - this.toolTips.SetToolTip(this.checkBoxHandleMouseLocal, "Act on mouse locally (on the machine IR Server is running on)"); + this.toolTips.SetToolTip(this.checkBoxHandleMouseLocal, "Act on mouse locally (on the machine Input Service is running on)"); this.checkBoxHandleMouseLocal.UseVisualStyleBackColor = true; // // numericUpDownMouseSensitivity @@ -316,7 +318,7 @@ this.checkBoxDisableMCEServices.AutoSize = true; this.checkBoxDisableMCEServices.Checked = true; this.checkBoxDisableMCEServices.CheckState = System.Windows.Forms.CheckState.Checked; - this.checkBoxDisableMCEServices.Location = new System.Drawing.Point(8, 96); + this.checkBoxDisableMCEServices.Location = new System.Drawing.Point(8, 104); this.checkBoxDisableMCEServices.Name = "checkBoxDisableMCEServices"; this.checkBoxDisableMCEServices.Size = new System.Drawing.Size(216, 17); this.checkBoxDisableMCEServices.TabIndex = 2; @@ -327,7 +329,7 @@ // // labelLearnIRTimeout // - this.labelLearnIRTimeout.Location = new System.Drawing.Point(8, 64); + this.labelLearnIRTimeout.Location = new System.Drawing.Point(8, 72); this.labelLearnIRTimeout.Name = "labelLearnIRTimeout"; this.labelLearnIRTimeout.Size = new System.Drawing.Size(136, 20); this.labelLearnIRTimeout.TabIndex = 0; @@ -343,7 +345,7 @@ this.tabControl.Location = new System.Drawing.Point(8, 8); this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; - this.tabControl.Size = new System.Drawing.Size(256, 192); + this.tabControl.Size = new System.Drawing.Size(256, 224); this.tabControl.TabIndex = 0; // // tabPageBasic @@ -354,19 +356,20 @@ this.tabPageBasic.Location = new System.Drawing.Point(4, 22); this.tabPageBasic.Name = "tabPageBasic"; this.tabPageBasic.Padding = new System.Windows.Forms.Padding(3); - this.tabPageBasic.Size = new System.Drawing.Size(248, 166); + this.tabPageBasic.Size = new System.Drawing.Size(248, 198); this.tabPageBasic.TabIndex = 0; this.tabPageBasic.Text = "Basic"; this.tabPageBasic.UseVisualStyleBackColor = true; // // tabPageRemote // + this.tabPageRemote.Controls.Add(this.checkBoxUseSystemRatesRemote); this.tabPageRemote.Controls.Add(this.checkBoxEnableRemote); - this.tabPageRemote.Controls.Add(this.groupBoxTimes); + this.tabPageRemote.Controls.Add(this.groupBoxRemoteTiming); this.tabPageRemote.Location = new System.Drawing.Point(4, 22); this.tabPageRemote.Name = "tabPageRemote"; this.tabPageRemote.Padding = new System.Windows.Forms.Padding(3); - this.tabPageRemote.Size = new System.Drawing.Size(248, 166); + this.tabPageRemote.Size = new System.Drawing.Size(248, 198); this.tabPageRemote.TabIndex = 1; this.tabPageRemote.Text = "Remote"; this.tabPageRemote.UseVisualStyleBackColor = true; @@ -381,17 +384,19 @@ this.checkBoxEnableRemote.Size = new System.Drawing.Size(155, 17); this.checkBoxEnableRemote.TabIndex = 0; this.checkBoxEnableRemote.Text = "Enable remote control input"; + this.toolTips.SetToolTip(this.checkBoxEnableRemote, "Decode remote control button presses"); this.checkBoxEnableRemote.UseVisualStyleBackColor = true; // // tabPageKeyboard // + this.tabPageKeyboard.Controls.Add(this.checkBoxUseSystemRatesKeyboard); this.tabPageKeyboard.Controls.Add(this.checkBoxHandleKeyboardLocal); this.tabPageKeyboard.Controls.Add(this.checkBoxEnableKeyboard); this.tabPageKeyboard.Controls.Add(this.groupBoxKeypressTiming); this.tabPageKeyboard.Location = new System.Drawing.Point(4, 22); this.tabPageKeyboard.Name = "tabPageKeyboard"; this.tabPageKeyboard.Padding = new System.Windows.Forms.Padding(3); - this.tabPageKeyboard.Size = new System.Drawing.Size(248, 166); + this.tabPageKeyboard.Size = new System.Drawing.Size(248, 198); this.tabPageKeyboard.TabIndex = 2; this.tabPageKeyboard.Text = "Keyboard"; this.tabPageKeyboard.UseVisualStyleBackColor = true; @@ -406,6 +411,7 @@ this.checkBoxEnableKeyboard.Size = new System.Drawing.Size(132, 17); this.checkBoxEnableKeyboard.TabIndex = 0; this.checkBoxEnableKeyboard.Text = "Enable keyboard input"; + this.toolTips.SetToolTip(this.checkBoxEnableKeyboard, "Decode remote keyboard input"); this.checkBoxEnableKeyboard.UseVisualStyleBackColor = true; // // groupBoxKeypressTiming @@ -414,7 +420,7 @@ this.groupBoxKeypressTiming.Controls.Add(this.numericUpDownKeyHeldDelay); this.groupBoxKeypressTiming.Controls.Add(this.labelKeyHeldDelay); this.groupBoxKeypressTiming.Controls.Add(this.numericUpDownKeyRepeatDelay); - this.groupBoxKeypressTiming.Location = new System.Drawing.Point(8, 40); + this.groupBoxKeypressTiming.Location = new System.Drawing.Point(8, 72); this.groupBoxKeypressTiming.Name = "groupBoxKeypressTiming"; this.groupBoxKeypressTiming.Size = new System.Drawing.Size(232, 88); this.groupBoxKeypressTiming.TabIndex = 1; @@ -426,7 +432,7 @@ this.labelKeyRepeatDelay.Location = new System.Drawing.Point(8, 24); this.labelKeyRepeatDelay.Name = "labelKeyRepeatDelay"; this.labelKeyRepeatDelay.Size = new System.Drawing.Size(128, 20); - this.labelKeyRepeatDelay.TabIndex = 0; + this.labelKeyRepeatDelay.TabIndex = 1; this.labelKeyRepeatDelay.Text = "Key repeat delay:"; this.labelKeyRepeatDelay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // @@ -435,7 +441,7 @@ this.labelKeyHeldDelay.Location = new System.Drawing.Point(8, 56); this.labelKeyHeldDelay.Name = "labelKeyHeldDelay"; this.labelKeyHeldDelay.Size = new System.Drawing.Size(128, 20); - this.labelKeyHeldDelay.TabIndex = 2; + this.labelKeyHeldDelay.TabIndex = 3; this.labelKeyHeldDelay.Text = "Key held delay:"; this.labelKeyHeldDelay.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // @@ -448,7 +454,7 @@ this.tabPageMouse.Location = new System.Drawing.Point(4, 22); this.tabPageMouse.Name = "tabPageMouse"; this.tabPageMouse.Padding = new System.Windows.Forms.Padding(3); - this.tabPageMouse.Size = new System.Drawing.Size(248, 166); + this.tabPageMouse.Size = new System.Drawing.Size(248, 198); this.tabPageMouse.TabIndex = 3; this.tabPageMouse.Text = "Mouse"; this.tabPageMouse.UseVisualStyleBackColor = true; @@ -472,27 +478,56 @@ this.checkBoxEnableMouse.Size = new System.Drawing.Size(119, 17); this.checkBoxEnableMouse.TabIndex = 0; this.checkBoxEnableMouse.Text = "Enable mouse input"; + this.toolTips.SetToolTip(this.checkBoxEnableMouse, "Decode remote mouse input"); this.checkBoxEnableMouse.UseVisualStyleBackColor = true; // + // checkBoxUseSystemRatesRemote + // + this.checkBoxUseSystemRatesRemote.AutoSize = true; + this.checkBoxUseSystemRatesRemote.Checked = true; + this.checkBoxUseSystemRatesRemote.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBoxUseSystemRatesRemote.Location = new System.Drawing.Point(8, 40); + this.checkBoxUseSystemRatesRemote.Name = "checkBoxUseSystemRatesRemote"; + this.checkBoxUseSystemRatesRemote.Size = new System.Drawing.Size(187, 17); + this.checkBoxUseSystemRatesRemote.TabIndex = 0; + this.checkBoxUseSystemRatesRemote.Text = "Use system keyboard rate settings"; + this.toolTips.SetToolTip(this.checkBoxUseSystemRatesRemote, "Use the system keyboard repeat rate settings for remote button timing"); + this.checkBoxUseSystemRatesRemote.UseVisualStyleBackColor = true; + this.checkBoxUseSystemRatesRemote.CheckedChanged += new System.EventHandler(this.checkBoxUseSystemRatesRemote_CheckedChanged); + // + // checkBoxUseSystemRatesKeyboard + // + this.checkBoxUseSystemRatesKeyboard.AutoSize = true; + this.checkBoxUseSystemRatesKeyboard.Checked = true; + this.checkBoxUseSystemRatesKeyboard.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBoxUseSystemRatesKeyboard.Location = new System.Drawing.Point(8, 40); + this.checkBoxUseSystemRatesKeyboard.Name = "checkBoxUseSystemRatesKeyboard"; + this.checkBoxUseSystemRatesKeyboard.Size = new System.Drawing.Size(187, 17); + this.checkBoxUseSystemRatesKeyboard.TabIndex = 0; + this.checkBoxUseSystemRatesKeyboard.Text = "Use system keyboard rate settings"; + this.toolTips.SetToolTip(this.checkBoxUseSystemRatesKeyboard, "Use the system keyboard repeat rate settings for remote keyboard repeat rates"); + this.checkBoxUseSystemRatesKeyboard.UseVisualStyleBackColor = true; + this.checkBoxUseSystemRatesKeyboard.CheckedChanged += new System.EventHandler(this.checkBoxUseSystemRatesKeyboard_CheckedChanged); + // // Configure // this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.buttonCancel; - this.ClientSize = new System.Drawing.Size(272, 241); + this.ClientSize = new System.Drawing.Size(272, 273); this.ControlBox = false; this.Controls.Add(this.tabControl); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonOK); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MinimumSize = new System.Drawing.Size(278, 266); + this.MinimumSize = new System.Drawing.Size(278, 298); this.Name = "Configure"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Microsoft MCE Configuration"; ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonRepeatDelay)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonHeldDelay)).EndInit(); - this.groupBoxTimes.ResumeLayout(false); + this.groupBoxRemoteTiming.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLearnTimeout)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownKeyHeldDelay)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownKeyRepeatDelay)).EndInit(); @@ -519,7 +554,7 @@ private System.Windows.Forms.NumericUpDown numericUpDownButtonHeldDelay; private System.Windows.Forms.Button buttonOK; private System.Windows.Forms.Button buttonCancel; - private System.Windows.Forms.GroupBox groupBoxTimes; + private System.Windows.Forms.GroupBox groupBoxRemoteTiming; private System.Windows.Forms.ToolTip toolTips; private System.Windows.Forms.Label labelLearnIRTimeout; private System.Windows.Forms.NumericUpDown numericUpDownLearnTimeout; @@ -541,5 +576,7 @@ private System.Windows.Forms.CheckBox checkBoxHandleMouseLocal; private System.Windows.Forms.CheckBox checkBoxEnableMouse; private System.Windows.Forms.CheckBox checkBoxDisableMCEServices; + private System.Windows.Forms.CheckBox checkBoxUseSystemRatesRemote; + private System.Windows.Forms.CheckBox checkBoxUseSystemRatesKeyboard; } } \ No newline at end of file Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.cs 2008-02-09 14:42:42 UTC (rev 1352) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.cs 2008-02-09 16:10:18 UTC (rev 1353) @@ -29,6 +29,11 @@ get { return checkBoxEnableRemote.Checked; } set { checkBoxEnableRemote.Checked = value; } } + public bool UseSystemRatesForRemote + { + get { return checkBoxUseSystemRatesRemote.Checked; } + set { checkBoxUseSystemRatesRemote.Checked = value; } + } public int RemoteRepeatDelay { get { return Decimal.ToInt32(numericUpDownButtonRepeatDelay.Value); } @@ -45,6 +50,11 @@ get { return checkBoxEnableKeyboard.Checked; } set { checkBoxEnableKeyboard.Checked = value; } } + public bool UseSystemRatesForKeyboard + { + get { return checkBoxUseSystemRatesKeyboard.Checked; } + set { checkBoxUseSystemRatesKeyboard.Checked = value; } + } public int KeyboardRepeatDelay { get { return Decimal.ToInt32(numericUpDownKeyRepeatDelay.Value); } @@ -103,6 +113,15 @@ #endregion Buttons + private void checkBoxUseSystemRatesRemote_CheckedChanged(object sender, EventArgs e) + { + groupBoxRemoteTiming.Enabled = !checkBoxUseSystemRatesRemote.Checked; + } + private void checkBoxUseSystemRatesKeyboard_CheckedChanged(object sender, EventArgs e) + { + groupBoxKeypressTiming.Enabled = !checkBoxUseSystemRatesKeyboard.Checked; + } + } } Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2008-02-09 14:42:42 UTC (rev 1352) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2008-02-09 16:10:18 UTC (rev 1353) @@ -71,25 +71,27 @@ #region Configuration - int _learnTimeout = 10000; - bool _disableMceServices = true; + int _learnTimeout = 10000; + bool _disableMceServices = true; - bool _enableRemoteInput = true; - int _remoteFirstRepeat = 400; - int _remoteHeldRepeats = 250; + bool _enableRemoteInput = true; + bool _useSystemRatesRemote = false; + int _remoteFirstRepeat = 400; + int _remoteHeldRepeats = 250; - bool _enableKeyboardInput = false; - int _keyboardFirstRepeat = 350; - int _keyboardHeldRepeats = 0; - bool _handleKeyboardLocally = true; + bool _enableKeyboardInput = false; + bool _useSystemRatesKeyboard = true; + int _keyboardFirstRepeat = 350; + int _keyboardHeldRepeats = 0; + bool _handleKeyboardLocally = true; - bool _enableMouseInput = false; - bool _handleMouseLocally = true; - double _mouseSensitivity = 1.0d; + bool _enableMouseInput = false; + bool _handleMouseLocally = true; + double _mouseSensitivity = 1.0d; // Hidden options ... - bool _storeAsPronto = true; - bool _forceVistaDriver = false; + bool _storeAsPronto = true; + bool _forceVistaDriver = false; #endregion Configuration @@ -384,10 +386,12 @@ try { _disableMceServices = bool.Parse(doc.DocumentElement.Attributes["DisableMceServices"].Value); } catch {} try { _enableRemoteInput = bool.Parse(doc.DocumentElement.Attributes["EnableRemoteInput"].Value); } catch {} + try { _useSystemRatesRemote = bool.Parse(doc.DocumentElement.Attributes["UseSystemRatesRemote"].Value); } catch { } try { _remoteFirstRepeat = int.Parse(doc.DocumentElement.Attributes["RemoteFirstRepeat"].Value); } catch {} try { _remoteHeldRepeats = int.Parse(doc.DocumentElement.Attributes["RemoteHeldRepeats"].Value); } catch {} try { _enableKeyboardInput = bool.Parse(doc.DocumentElement.Attributes["EnableKeyboardInput"].Value); } catch {} + try { _useSystemRatesKeyboard = bool.Parse(doc.DocumentElement.Attributes["UseSystemRatesKeyboard"].Value); } catch { } try { _keyboardFirstRepeat = int.Parse(doc.DocumentElement.Attributes["KeyboardFirstRepeat"].Value); } catch {} try { _keyboardHeldRepeats = int.Parse(doc.DocumentElement.Attributes["KeyboardHeldRepeats"].Value); } catch {} try { _handleKeyboardLocally = bool.Parse(doc.DocumentElement.Attributes["HandleKeyboardLocally"].Value); } catch {} @@ -399,6 +403,8 @@ // Hidden options ... try { _storeAsPronto = bool.Parse(doc.DocumentElement.Attributes["StoreAsPronto"].Value); } catch {} try { _forceVistaDriver = bool.Parse(doc.DocumentElement.Attributes["ForceVistaDriver"].Value); } catch {} + + } void SaveSettings() { @@ -416,10 +422,12 @@ writer.WriteAttributeString("DisableMceServices", _disableMceServices.ToString()); writer.WriteAttributeString("EnableRemoteInput", _enableRemoteInput.ToString()); + writer.WriteAttributeString("UseSystemRatesRemote", _useSystemRatesRemote.ToString()); writer.WriteAttributeString("RemoteFirstRepeat", _remoteFirstRepeat.ToString()); writer.WriteAttributeString("RemoteHeldRepeats", _remoteHeldRepeats.ToString()); writer.WriteAttributeString("EnableKeyboardInput", _enableKeyboardInput.ToString()); + writer.WriteAttributeString("UseSystemRatesKeyboard", _useSystemRatesKeyboard.ToString()); writer.WriteAttributeString("KeyboardFirstRepeat", _keyboardFirstRepeat.ToString()); writer.WriteAttributeString("KeyboardHeldRepeats", _keyboardHeldRepeats.ToString()); writer.WriteAttributeString("HandleKeyboardLocally", _handleKeyboardLocally.ToString()); @@ -564,15 +572,23 @@ { TimeSpan timeBetween = DateTime.Now.Subtract(_lastRemoteButtonTime); - if (!_remoteButtonRepeated && timeBetween.TotalMilliseconds < _remoteFirstRepeat) + int firstRepeat = _remoteFirstRepeat; + int heldRepeats = _remoteHeldRepeats; + if (_useSystemRatesRemote) { + firstRepeat = SystemInformation.KeyboardDelay; + heldRepeats = SystemInformation.KeyboardSpeed; + } + + if (!_remoteButtonRepeated && timeBetween.TotalMilliseconds < firstRepeat) + { #if TRACE Trace.WriteLine("Skip First Repeat"); #endif return; } - if (_remoteButtonRepeated && timeBetween.TotalMilliseconds < _remoteHeldRepeats) + if (_remoteButtonRepeated && timeBetween.TotalMilliseconds < heldRepeats) { #if TRACE Trace.WriteLine("Skip Held Repeat"); @@ -580,7 +596,7 @@ return; } - if (_remoteButtonRepeated && timeBetween.TotalMilliseconds > _remoteFirstRepeat) + if (_remoteButtonRepeated && timeBetween.TotalMilliseconds > firstRepeat) _remoteButtonRepeated = false; else _remoteButtonRepeated = true; @@ -662,25 +678,29 @@ // Repeats ... TimeSpan timeBetween = DateTime.Now.Subtract(_lastKeyboardKeyTime); - if (!_keyboardKeyRepeated && timeBetween.TotalMilliseconds < _keyboardFirstRepeat) + int firstRepeat = _keyboardFirstRepeat; + int heldRepeats = _keyboardHeldRepeats; + if (_useSystemRatesRemote) + { + firstRepeat = SystemInformation.KeyboardDelay; + heldRepeats = SystemInformation.KeyboardSpeed; + } + + if (!_keyboardKeyRepeated && timeBetween.TotalMilliseconds < firstRepeat) return; - if (_keyboardKeyRepeated && timeBetween.TotalMilliseconds < _keyboardHeldRepeats) + if (_keyboardKeyRepeated && timeBetween.TotalMilliseconds < heldRepeats) return; - if (_keyboardKeyRepeated && timeBetween.TotalMilliseconds > _keyboardFirstRepeat) + if (_keyboardKeyRepeated && timeBetween.TotalMilliseconds > firstRepeat) _keyboardKeyRepeated = false; else _keyboardKeyRepeated = true; if (_handleKeyboardLocally) - { KeyDown(keyCode, modifiers); - } else - { KeyDownRemote(keyCode, modifiers); - } } _lastKeyboardKeyCode = keyCode; Modified: trunk/plugins/IR Server Suite/IR Server Suite.sln =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite.sln 2008-02-09 14:42:42 UTC (rev 1352) +++ trunk/plugins/IR Server Suite/IR Server Suite.sln 2008-02-09 16:10:18 UTC (rev 1353) @@ -377,6 +377,12 @@ Release.AspNetCompiler.Debug = "False" EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "General HID Receiver", "IR Server Plugins\General HID Receiver\General HID Receiver.csproj", "{26DEDF6D-F60D-4311-9A9E-DDF64500D5BF}" + ProjectSection(WebsiteProperties) = preProject + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.Debug = "False" + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -789,6 +795,12 @@ {B5E711A2-E6D0-4BEA-B66B-7A8B0BCA6A4D}.Release|Any CPU.Build.0 = Release|Any CPU {B5E711A2-E6D0-4BEA-B66B-7A8B0BCA6A4D}.Release|x86.ActiveCfg = Release|x86 {B5E711A2-E6D0-4BEA-B66B-7A8B0BCA6A4D}.Release|x86.Build.0 = Release|x86 + {26DEDF6D-F60D-4311-9A9E-DDF64500D5BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {26DEDF6D-F60D-4311-9A9E-DDF64500D5BF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {26DEDF6D-F60D-4311-9A9E-DDF64500D5BF}.Debug|x86.ActiveCfg = Debug|Any CPU + {26DEDF6D-F60D-4311-9A9E-DDF64500D5BF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {26DEDF6D-F60D-4311-9A9E-DDF64500D5BF}.Release|Any CPU.Build.0 = Release|Any CPU + {26DEDF6D-F60D-4311-9A9E-DDF64500D5BF}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -825,6 +837,7 @@ {37A555DF-7012-4B99-8A47-1C922A361E52} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} {732CDF64-D047-4D3C-91DA-E2FF27D84179} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} {E146C2D8-6842-46C5-B2A9-AFA9D6F1A3BB} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} + {26DEDF6D-F60D-4311-9A9E-DDF64500D5BF} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} {E8BEBBCC-1EE0-488D-8806-98ADCB7F0479} = {6C18D808-E5ED-4CFB-A7CD-E2BDBB1D9BDA} {7946D42A-4BCB-4D79-80EB-BA9B17CE2E90} = {6C18D808-E5ED-4CFB-A7CD-E2BDBB1D9BDA} {CD395FC2-70E2-42C4-8A20-5469A0C5EB50} = {6C18D808-E5ED-4CFB-A7CD-E2BDBB1D9BDA} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |