ShortCut'er Plugin V2

Discussion in 'MediaPortal 1 Plugins' started by nicsergio, September 24, 2013.

  1. nicsergio
    • Premium Supporter

    nicsergio MP Donator

    Joined:
    April 27, 2010
    Messages:
    161
    Likes Received:
    63
    Gender:
    Male
    Ratings:
    +113 / 0
    Home Country:
    Italy Italy
    Show System Specs
    [​IMG]
    Description:

    This is a remake of the great process plugin ShortCut'er, the old thread you can find here.
    ShortCut'er lets you create keyboard shortcuts to any MP screen, like TV, Videos, Music, etc..
    For each shortcut you can define a keystroke combination such as:

    <CTRL> + <ALT> + <SHIFT> + <KEY>​

    This can be useful to manage some remotes (such as imon) where for each key can be associated keystroke combinations.

    The setup screen is this:
    [​IMG]

    Thanks to @MoPhat, @chemelli and @and-81 for the development of first version of this plugin.
    Thanks also to the developers of the Keyboard Input Plugin and StreamedMp Skin Editor for the many ideas that I took from their work.

    Documentation: Wiki page

    Installation:
    Download the installation file from repository and double click on it or use MedaPortal Extension Installer.
    - ChangeLog -



    The plugin is compatible with the old configuration, when you save the changes, the file will be overwritten in the new format.
    Will be made an automatic backup of the old configuration (ShortCuter.xml.old) before upgrading.
    The plugin is compatible with MP from 1.2.x to 1.10.0.

    News:
    The new features introduced since the previous version are:
    • management also the ALT key as modifier, in addition to CTRL and SHIFT
    • management of the modifiers (CTRL - ALT - SHIFT) for each shortcut, not as a global setting for all shortcuts
    • ability to associate a sound effect (among those available for the selected skin) to each shortcut
    • possibility of using the load parameters (also called hyperlink parameters), for those pages that support them, such as moving picture, TV series, online videos, so for example, to enter directly in the Trailers section
    • improvement of the configuration interface, providing a list of the most popular links or alternatively the selection of the various files of the skin (that have a WindowID)
    • [V2.0.3+] possibility of write GuiProperties name in Load Parameters: the name will be replaced by the value of the property
    • [V2.0.6+] CapsLock & NumLock full override at start-up
    • [V2.0.6+] management cyclical & toggle shortcuts
    • [V2.1.0+] Skin Navigator (the plugin becomes a MP Window Plugin)

    Details:
    I have completely rewritten the plugin, the main focus has been the management of the ALT key, so as to allow the interception of any combination of keys.
    The technique of the old version, i.e. use the MP action KeyPressed, did not allow this, so I started to explore the solution of keyboard hook (as used by the Keyboard Input plugin) but this, with Win7, led to the problem of time-out response and random unhook from Windows.
    Finally, since the goal of the plugin is not to remap the MP actions or replace them, but to go in addition, I preferred to adopt the solution of interception by RawInput, safest and without problems of timeout.


    thanks to all :)
     
    Last edited: January 11, 2015
    • Thank You! Thank You! x 13
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. crackdown

    crackdown Portal Pro

    Joined:
    November 24, 2009
    Messages:
    100
    Likes Received:
    16
    Ratings:
    +22 / 0
    Home Country:
    Netherlands Netherlands
  4. nicsergio
    • Premium Supporter

    nicsergio MP Donator

    Joined:
    April 27, 2010
    Messages:
    161
    Likes Received:
    63
    Gender:
    Male
    Ratings:
    +113 / 0
    Home Country:
    Italy Italy
    Show System Specs
    thanks

    when I have a bit of time, I put the sources on the plugin repository and public a small documentation page on MP Wiki.. :)

    let me know if you have any other ideas on this plugin or if there are problems.. :eek:
     
  5. nicsergio
    • Premium Supporter

    nicsergio MP Donator

    Joined:
    April 27, 2010
    Messages:
    161
    Likes Received:
    63
    Gender:
    Male
    Ratings:
    +113 / 0
    Home Country:
    Italy Italy
    Show System Specs
    a small upgrade is available, see first post :)
     
    • Thank You! Thank You! x 1
  6. Invisible
    • Premium Supporter

    Invisible MP Donator

    Joined:
    December 28, 2008
    Messages:
    45
    Likes Received:
    3
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +4 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi,

    I have only one thing which I miss (which has worked in the previous version), keys without any addtional special key is not saved and then lost. I use the IR-USB Sconi V2, and has a configuration which use the default MediaPortal keys. Only for some special keys (MyTV, TVGuide, ect) I want to use your plugin, but here the Ctrl, Alt and Shift are not working correctly. If I enter it on my keyboard it's working. If I use e.g. "SHIFT + g" and press this on my remote then I got "G" but the plugin is not recognize it. Is it possible to extend you plugin to use it also without any special keys like the Version 1.

    Regards,
    Invisible
     
  7. nicsergio
    • Premium Supporter

    nicsergio MP Donator

    Joined:
    April 27, 2010
    Messages:
    161
    Likes Received:
    63
    Gender:
    Male
    Ratings:
    +113 / 0
    Home Country:
    Italy Italy
    Show System Specs
    sure ..
    I had put that limitation to make more clarity, prevent overwriting keys already mapped by MediaPortal and make lighter the interception of events for the plugin, but if there is this need, I make some changes and release a new DLL..

    But I'm also curious, if you have availability to take a test:

    • in MP configuration\general set LogVerbosity to "Information"
    • start MP
    • send shift + g from your remote
    • attach here the mediaportal log file, that I check if the plugin listening for the event
    thanks
     
    • Like Like x 1
  8. nicsergio
    • Premium Supporter

    nicsergio MP Donator

    Joined:
    April 27, 2010
    Messages:
    161
    Likes Received:
    63
    Gender:
    Male
    Ratings:
    +113 / 0
    Home Country:
    Italy Italy
    Show System Specs
    @Invisible:
    I have attached the DLL file, changed according to your request, if you give me positive feedback, I rebuild the installation file
    I would be grateful if you also take the "log test"
     

    Attached Files:

    • ShortCuter.zip
      File size:
      119.3 KB
      Uploaded:
      October 29, 2013
      Views:
      191
    • Thank You! Thank You! x 1
  9. Invisible
    • Premium Supporter

    Invisible MP Donator

    Joined:
    December 28, 2008
    Messages:
    45
    Likes Received:
    3
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +4 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hi nicsergio,

    I have testes it with "ctrl + g" from my Sconi but your plugin only recv "g", so it seem that my SconiCenter has a bug. Because if I press "ctrl +g" from my wirless keyboard then your plugin is receiving "ctrl + g" and the link is working. I added the log file which you wanted at time point [2013-10-29 20:41:06,905] I pressed 3x my remote and then 1x from my keyboard[DOUBLEPOST=1383076676][/DOUBLEPOST]
    Hi nicsergio,

    I tested your new plugin it works fine with my Sconi :) . I also added the log file where you could see that my 5 addtional keys are working without CTRL / SHIRT or ALT :). So thanks a lot for the great job (y).

    Regards,
    Invisible
     
    • Like Like x 1
  10. mcroyjason

    mcroyjason Portal Member

    Joined:
    July 4, 2013
    Messages:
    14
    Likes Received:
    2
    Gender:
    Male
    Ratings:
    +2 / 0
    Home Country:
    United States of America United States of America
    I just wanted to say thank you for this plugin!

    I use the Flirc USB which just receives remote commands as keyboard presses. This plugin has made it possible for me to do some additional things in MP that I couldn't do before. I am currently only using the Live TV/Online videos plugin and the Mediabrowser plugin for watching my videos.

    Anyway, so far it is all working very well.
     
    • Like Like x 1
  11. nicsergio
    • Premium Supporter

    nicsergio MP Donator

    Joined:
    April 27, 2010
    Messages:
    161
    Likes Received:
    63
    Gender:
    Male
    Ratings:
    +113 / 0
    Home Country:
    Italy Italy
    Show System Specs
    thanks: I am glad that this plugin has helped you
     
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!