Hi,

As I'm doing this HTPC software all by my self I created a class to help with System.Windows.Forms.Message to access hParam and wParam low and high words, as of yet I didn't found any use for that so have fun with it as I release it to the public domain

 

The code is as follows:

#region License
/*
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>
*/

// PS. (C) VPKSoft 2018..
#endregion

using System;
using System.Windows.Forms;

#pragma warning disable CS1587 
/// <summary>
/// A name space for the MessageHelper class.
/// </summary>
#pragma warning restore CS1587 // XML comment is not placed on a valid language element
namespace VPKSoft.MessageHelper
{
    /// <summary>
    /// A class to help with Message class in such cases as an overridden Control.WndProc Method.
    /// </summary>
    public static class MessageHelper
    {
        /// <summary>
        /// Posted to a window when the cursor moves.
        /// </summary>
        public const int WM_MOUSEMOVE = 0x0200; // Posted to a window when the cursor moves.

        /// <summary>
        /// // Posted to a window when the cursor leaves the client area of the window specified in a prior call to TrackMouseEvent.
        /// </summary>
        public const int WM_MOUSELEAVE = 0x02A3; // Posted to a window when the cursor leaves the client area of the window specified in a prior call to TrackMouseEvent.

        /// <summary>
        /// Sent to the window that is losing the mouse capture.
        /// </summary>
        public const int WM_CAPTURECHANGED = 0x0215; // Sent to the window that is losing the mouse capture.

        /// <summary>
        /// The CTRL key is down.
        /// </summary>
        public const int MK_CONTROL = 0x0008; // The CTRL key is down.

        /// <summary>
        /// The left mouse button is down.
        /// </summary>
        public const int MK_LBUTTON = 0x0001; // The left mouse button is down.

        /// <summary>
        /// The middle mouse button is down.
        /// </summary>
        public const int MK_MBUTTON = 0x0010; // The middle mouse button is down.

        /// <summary>
        /// The right mouse button is down.
        /// </summary>
        public const int MK_RBUTTON = 0x0002; // The right mouse button is down.

        /// <summary>
        /// The SHIFT key is down.
        /// </summary>
        public const int MK_SHIFT = 0x0004; // The SHIFT key is down.

        /// <summary>
        /// The first X button is down.
        /// </summary>
        public const int MK_XBUTTON1 = 0x0020; // The first X button is down.

        /// <summary>
        /// // The second X button is down.
        /// </summary>
        public const int MK_XBUTTON2 = 0x0040; // The second X button is down.

        /// <summary>
        /// Gets the low order word of the lParam's value.
        /// </summary>
        /// <param name="message">A message of which low order word of the lParam's value to get.</param>
        /// <returns>The low order word of the lParam's value.</returns>
        public static int LParamLoWord(this Message message)
        {
            return BitConverter.ToInt16(BitConverter.GetBytes((int)message.LParam), 0);
        }

        /// <summary>
        /// Gets the high order word of the lParam's value.
        /// </summary>
        /// <param name="message">A message of which high order word of the lParam's value to get.</param>
        /// <returns>The high order word of the lParam's value.</returns>
        public static int LParamHiWord(this Message message)
        {
            return BitConverter.ToInt16(BitConverter.GetBytes((int)message.LParam), 2);
        }

        /// <summary>
        /// Gets the low order word of the wParam's value.
        /// </summary>
        /// <param name="message">A message of which low order word of the wParam's value to get.</param>
        /// <returns>The low order word of the wParam's value.</returns>
        public static int WParamLoWord(this Message message)
        {
            return BitConverter.ToInt16(BitConverter.GetBytes((int)message.WParam), 0);
        }

        /// <summary>
        /// Gets the high order word of the wParam's value.
        /// </summary>
        /// <param name="message">A message of which high order word of the wParam's value to get.</param>
        /// <returns>The high order word of the wParam's value.</returns>
        public static int WParamHiWord(this Message message)
        {
            return BitConverter.ToInt16(BitConverter.GetBytes((int)message.WParam), 2);
        }

        /// <summary>
        /// Gets the low order word of the lParam's value unsigned.
        /// </summary>
        /// <param name="message">A message of which low order word of the lParam's value to get unsigned.</param>
        /// <returns>The low order word of the lParam's value unsigned.</returns>
        public static uint LParamLoWordUnsigned(this Message message)
        {
            return BitConverter.ToUInt16(BitConverter.GetBytes((int)message.LParam), 0);
        }

        /// <summary>
        /// Gets the high order word of the lParam's value unsigned.
        /// </summary>
        /// <param name="message">A message of which high order word of the lParam's value to get unsigned.</param>
        /// <returns>The high order word of the lParam's value unsigned.</returns>
        public static uint LParamHiWordUnsigned(this Message message)
        {
            return BitConverter.ToUInt16(BitConverter.GetBytes((int)message.LParam), 2);
        }

        /// <summary>
        /// Gets the low order word of the wParam's value unsigned.
        /// </summary>
        /// <param name="message">A message of which low order word of the wParam's value to get unsigned.</param>
        /// <returns>The low order word of the wParam's value unsigned.</returns>
        public static uint WParamLoWordUnsigned(this Message message)
        {
            return BitConverter.ToUInt16(BitConverter.GetBytes((int)message.WParam), 0);
        }

        /// <summary>
        /// Gets the high order word of the wParam's value unsigned.
        /// </summary>
        /// <param name="message">A message of which high order word of the wParam's value to get unsigned.</param>
        /// <returns>The high order word of the wParam's value unsigned.</returns>
        public static uint WParamHiWordUnsigned(this Message message)
        {
            return BitConverter.ToUInt16(BitConverter.GetBytes((int)message.WParam), 2);
        }
    }
}

 

See you later..  

 

Hi,

It has been a few to 6 months since last time I released or posted something here, no to tell the reason.

I have been working on a software which would somewhat replace the KODI software for my HTPC as the system seems to be low on resources - the KODI is just unable to present suitable video playback.

So as a solution I started creating a new software - as there is no other way to fix the problem (of course) 

To create a new HTPC solution from scratch is somewhat time consuming.. 

The recipe goes as follows

  • Find suitable libraries for video and audio playback
  • Find suitable libraries for full screen web browsing
  • Do code as a maniac
  • Do remember to relax
  • And do think what other users might have to expect for the software to do
  • Use the "nightly" release to do what you might expect and be prepared for a catastrophic disappointment   
  • The name of the software to become, I decided to name it as vamp# (video amp) as the audio software this is using via WCF will be the amp#

 

The project seems to be creating a lot of side projects - with Windows.Forms, reminder: Learn something more efficient ..

 

 

So to the conclusion, it might take another six months before this project will released as I'm doing this as a hobby, not as work.

By the way I try not to release any beta version of any software, so just email me or contact me other way if you found more bugs on the previously released software however I use my laziness as an excuse to do nothing.

 

A teaser :

 

 

The most time consuming issue seem to be a license compatibility with the GLPv3 - someone (hopefully not me) should construct a mind-map or a software to see the compatibility with the selected license .   

 

TODO

  • Make it work
  • Have the time to make it work
  • Release the updated projects such as amp# before releasing this project
  • Lot more of of this hobby
  • Duplicate the amount of swearing out loud 

I have not spared any resources on this one, all the images used in the software are PNG images sized enough to scale to a 4K television and this is made possible by the openclipart.org with an excellent selection of image as I don't have any visually artistic talents.

 

The resources

As I mentioned before I have spared no resources - first the working directory

 

NSIS creating an installer with the best compression (took about 7 minutes with a Intel(R) Core(TM) i7-4770K CPU @ 3500 GHz whit a SSD drive):

 

Surprise, the size is now a lot smaller  !

 

See you all at the next time (TODO:: update the manifesto of something to support the GDPR)..  

Hi,

As python seems to be "everywhere" these days I might or might not to self-learn the thing 

And already making progress - haha:

Have fun fellow nerds 

 Hi,

As I today released updates on the amp#VPKSoft.Utils and Poslib it seems that there is still lot to do with my hobby 

TODO:

  • Comment the amp# code "PROPERLY" 
  • Create a HTPC front end for the amp# as it now has this undocumented WCF remote control possibility..

          

  • Keep learning Python 
  • Change to a newer version of Visual Studio
  • I forgot the rest.. hope the hobby doesn't get stressful - as then it wouldn't be a hobby anymore 

Keep having fun! 

Hi,

As I previously wrote about the NAS change/update procedure I forgot to mention the commands you can't live without :

The first, sl:

 

The second and third, fortune and cowsay:

Have a good fortune