ShortCut'er Plugin V2 (2 Viewers)

nicsergio

MP Donator
  • Premium Supporter
  • April 27, 2010
    161
    155
    Italy Italy
    Country flag

    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:


    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:

    nicsergio

    MP Donator
  • Premium Supporter
  • April 27, 2010
    161
    155
    Italy Italy
    Country flag
    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:
     

    Invisible

    MP Donator
  • Premium Supporter
  • December 28, 2008
    52
    6
    Ba-Wü
    Germany Germany
    Country flag
    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
     

    nicsergio

    MP Donator
  • Premium Supporter
  • April 27, 2010
    161
    155
    Italy Italy
    Country flag
    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
     

    nicsergio

    MP Donator
  • Premium Supporter
  • April 27, 2010
    161
    155
    Italy Italy
    Country flag
    @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"
     

    Attachments

    Invisible

    MP Donator
  • Premium Supporter
  • December 28, 2008
    52
    6
    Ba-Wü
    Germany Germany
    Country flag
    I'm also curious, if you have availability to take a test:
    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
    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]
    @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"
    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
     

    mcroyjason

    Portal Member
    July 4, 2013
    14
    2
    47
    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.
     

    nicsergio

    MP Donator
  • Premium Supporter
  • April 27, 2010
    161
    155
    Italy Italy
    Country flag
    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.
    thanks: I am glad that this plugin has helped you
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 2)

    OP Similar threads Forum Replies Date
    S Shortcuts MP1 My Recorded & TV Guide General 10
    R [solved] Command / Shortcut for changing subtitles or audio Archive 5
    R MediaPortal will not allow windows shortcut keys to work OffTopic 0
    R Playing a movie from a shortcut? OffTopic 1
    T MP2 - V2.1 Main Menu Full Screen (Shortcut F) Older releases 2
    T Shortcuts for Basic-Windows Input / Output interfaces 6
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 11
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 9
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Similar threads

























    Top Bottom