From: <an...@us...> - 2008-04-12 11:43:56
|
Revision: 1635 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1635&view=rev Author: and-81 Date: 2008-04-12 04:43:48 -0700 (Sat, 12 Apr 2008) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/Translator/CopyDataWM.cs trunk/plugins/IR Server Suite/Applications/Web Remote/Setup.cs trunk/plugins/IR Server Suite/Common/IrssUtils/Win32.cs trunk/plugins/IR Server Suite/Documentation/new.html trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs trunk/plugins/PlayOnStart/PlayOnStart.cs Modified: trunk/plugins/IR Server Suite/Applications/Translator/CopyDataWM.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/CopyDataWM.cs 2008-04-12 11:24:22 UTC (rev 1634) +++ trunk/plugins/IR Server Suite/Applications/Translator/CopyDataWM.cs 2008-04-12 11:43:48 UTC (rev 1635) @@ -9,6 +9,9 @@ namespace Translator { + /// <summary> + /// Used for sending and receiving Copy Data Windows Messages. + /// </summary> class CopyDataWM : NativeWindow, IDisposable { @@ -79,6 +82,10 @@ #region Methods + /// <summary> + /// Starts this instance. + /// </summary> + /// <returns></returns> public bool Start() { if (Handle != IntPtr.Zero) @@ -94,6 +101,9 @@ return (Handle != IntPtr.Zero); } + /// <summary> + /// Stops this instance. + /// </summary> public void Stop() { if (Handle != IntPtr.Zero) @@ -104,6 +114,10 @@ #region Overrides + /// <summary> + /// Invokes the default window procedure associated with this window. + /// </summary> + /// <param name="m">A <see cref="T:System.Windows.Forms.Message"></see> that is associated with the current Windows message.</param> protected override void WndProc(ref Message m) { if (m.Msg == (int)Win32.WindowsMessage.WM_COPYDATA) @@ -121,9 +135,8 @@ } byte[] dataBytes = new byte[dataStructure.cbData]; - IntPtr lpData = new IntPtr(dataStructure.lpData); - Marshal.Copy(lpData, dataBytes, 0, dataStructure.cbData); - string strData = Encoding.Default.GetString(dataBytes); + Marshal.Copy(dataStructure.lpData, dataBytes, 0, dataStructure.cbData); + string strData = Encoding.ASCII.GetString(dataBytes); Program.ProcessCommand(strData, false); } @@ -146,10 +159,10 @@ { Win32.COPYDATASTRUCT copyData; - byte[] dataBytes = Encoding.Default.GetBytes(data); + byte[] dataBytes = Encoding.ASCII.GetBytes(data); copyData.dwData = CopyDataID; - copyData.lpData = Win32.VarPtr(dataBytes).ToInt32(); + copyData.lpData = Win32.VarPtr(dataBytes); copyData.cbData = dataBytes.Length; IntPtr windowHandle = Win32.FindWindowByTitle(CopyDataTarget); Modified: trunk/plugins/IR Server Suite/Applications/Web Remote/Setup.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Web Remote/Setup.cs 2008-04-12 11:24:22 UTC (rev 1634) +++ trunk/plugins/IR Server Suite/Applications/Web Remote/Setup.cs 2008-04-12 11:43:48 UTC (rev 1635) @@ -61,7 +61,7 @@ string text = textBoxPassword.Text; MD5 md5 = new MD5CryptoServiceProvider(); - byte[] hash = md5.ComputeHash(Encoding.Default.GetBytes(text)); + byte[] hash = md5.ComputeHash(Encoding.ASCII.GetBytes(text)); return BitConverter.ToString(hash); } Modified: trunk/plugins/IR Server Suite/Common/IrssUtils/Win32.cs =================================================================== --- trunk/plugins/IR Server Suite/Common/IrssUtils/Win32.cs 2008-04-12 11:24:22 UTC (rev 1634) +++ trunk/plugins/IR Server Suite/Common/IrssUtils/Win32.cs 2008-04-12 11:43:48 UTC (rev 1635) @@ -1690,7 +1690,7 @@ /// <summary> /// Data. /// </summary> - public int lpData; + public IntPtr lpData; } /// <summary> @@ -1723,12 +1723,14 @@ public string szTypeName; }; + [StructLayout(LayoutKind.Sequential)] struct POINTAPI { public int x; public int y; } + [StructLayout(LayoutKind.Sequential)] struct RECT { public int left; @@ -1737,6 +1739,7 @@ public int bottom; } + [StructLayout(LayoutKind.Sequential)] struct WINDOWPLACEMENT { public int length; Modified: trunk/plugins/IR Server Suite/Documentation/new.html =================================================================== --- trunk/plugins/IR Server Suite/Documentation/new.html 2008-04-12 11:24:22 UTC (rev 1634) +++ trunk/plugins/IR Server Suite/Documentation/new.html 2008-04-12 11:43:48 UTC (rev 1635) @@ -73,6 +73,9 @@ <LI>Imon input plugin: Improved Imon plugin, now supports MCE and Imon PAD remote hardware.</LI> <LI>Tray Launcher: Now uses the Common program launching code (includes new focus forcing code).</LI> <LI>Translator: Fixed a bug with the tray icon not re-appearing correctly after being hidden.</LI> +<LI>Installer: Fixed an x64 bug.</LI> +<LI>Translator: Fixed an x64 bug.</LI> + </UL></P> <BR> 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-04-12 11:24:22 UTC (rev 1634) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2008-04-12 11:43:48 UTC (rev 1635) @@ -635,7 +635,8 @@ if (_ignoreAutomaticButtons && codeType == IrProtocol.RC6_MCE) { // Always ignore these buttones ... - if (keyCode == 0x7bdc || // Back + if ( + //keyCode == 0x7bdc || // Back (removed 12-April-2008) keyCode == 0x7bdd || // OK keyCode == 0x7bde || // Right keyCode == 0x7bdf || // Left Modified: trunk/plugins/PlayOnStart/PlayOnStart.cs =================================================================== --- trunk/plugins/PlayOnStart/PlayOnStart.cs 2008-04-12 11:24:22 UTC (rev 1634) +++ trunk/plugins/PlayOnStart/PlayOnStart.cs 2008-04-12 11:43:48 UTC (rev 1635) @@ -148,19 +148,19 @@ { Log.Info("PlayOnStart: Play {0}", fileName); - // Would this be better? - //g_Player.Play(fileName); + g_Player.Play(fileName); + /* GUIMessage message = new GUIMessage(GUIMessage.MessageType.GUI_MSG_PLAY_FILE, 0, 0, 0, 0, 0, null); message.Label = fileName; GUIGraphicsContext.ResetLastActivity(); GUIWindowManager.SendThreadMessage(message); + */ - // If it's in My Videos go fullscreen ... - if (GUIWindowManager.ActiveWindowEx == (int)GUIWindow.Window.WINDOW_VIDEOS) + if (g_Player.IsVideo) { - message = new GUIMessage(GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW, 0, 0, 0, (int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO, 0, null); + GUIMessage message = new GUIMessage(GUIMessage.MessageType.GUI_MSG_GOTO_WINDOW, 0, 0, 0, (int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO, 0, null); GUIGraphicsContext.ResetLastActivity(); GUIWindowManager.SendThreadMessage(message); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |