ShortCut'er Plugin - Shortcuts for the MP sections (2 Viewers)

chemelli

Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    49
    Milano, Italy
    Home Country
    Italy Italy
    Hi Mophat,

    I'm wrong or CTRL and SHIFT keys are not handled actually by the plugin ?

    Simone

    BTW, I have now compiled the sources, it was a reference to the core.dll and utils.dll in a different path from my to your pc...
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    I'm wrong or CTRL and SHIFT keys are not handled actually by the plugin ?

    not yet, but i have read your PM and will check the sources.

    good night
    MoPhat
     

    TheBatfink

    MP Donator
  • Premium Supporter
  • June 11, 2007
    1,288
    221
    Nottingham
    Home Country
    United Kingdom United Kingdom
    I have a media centre type of remote control with lots of assignable buttons which are redundant in MP which I would like to assign to shortcuts like this plugin is doing - Music - Videos - Pictures etc etc. Is there anyway I can see what is transmitted by the remote control and put that into the shortcut plugin as the key press or something?
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    ? ... no, the plugin does only map a keyboard key to a section (skin file)... thats all.

    What for a type of remote control is that?
     

    and-81

    Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    Hey MoPhat,

    To get Ctrl, Alt, Shift mapping you should use something like this:

    Code:
    string keys = String.Empty;
    
    if ((Control.ModifierKeys & Keys.Shift) == Keys.Shift)
      keys += "Shift + ";
    
    if ((Control.ModifierKeys & Keys.Control) == Keys.Control)
      keys += "Ctrl + ";
    
    if ((Control.ModifierKeys & Keys.Alt) == Keys.Alt)
      keys += "Alt + ";
    
    keys += keyChar.ToString();

    I hope that helps you,

    If you have any trouble with it let me know and I'll take a look at the source code for you and see if I can sort it out.

    Cheers,
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    Thank you and-81, i will try this out :p

    MoPhat
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    New Version is now on post #1

    Please check this an any comments are welcome :D

    MoPhat
     

    Users who are viewing this thread

    Top Bottom