ShortCut'er Plugin V2 (1 Viewer)

nicsergio

MP Donator
  • Premium Supporter
  • April 27, 2010
    161
    155
    Italy Italy
    Country flag
    @Stéphane Lenclud,
    I use the attached RawInputHook class to intercept keystrokes.

    I think the problem stems from my implementation of IMessageFilter: after ProcessRawInput the function returns true, then the message is stopped..

    Code:
    public bool PreFilterMessage(ref Message m)
    {
        if (m.Msg == WM_INPUT)
        {
            if (m.WParam == (IntPtr)0 || _backgroundInput)
            {
                if (KeyDown != null)
                {
                    ProcessRawInput(m.LParam);
                    return true;
                }
            }
        }
        return false;
    }
    What do you think?
    I could always return false so as to allow the continuation of the message to the next filters
     

    Attachments

    Stéphane Lenclud

    Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    Could be the problem though I'm not familiar with those APIs. I guess you should only return true if you actually perform an action so as to avoid duplicate actions.
     

    Stéphane Lenclud

    Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    Looks like it's fixed, well done.
    However the force caps-lock feature does not seem to be working anymore.
    I set it to force caps-lock ON but it did not do it.
     

    Stéphane Lenclud

    Development Group
  • Team MediaPortal
  • April 29, 2013
    2,563
    1,288
    Germany Germany
    Country flag
    Oups :)
    By the way, would it possible to have the same kind of options when closing MP?
    Thus one could turn on caps when starting MP and turn it off when closing MP.
     

    nicsergio

    MP Donator
  • Premium Supporter
  • April 27, 2010
    161
    155
    Italy Italy
    Country flag
    there were two errors regarding this function, now I have solved :p

    Oups :)
    By the way, would it possible to have the same kind of options when closing MP?
    Thus one could turn on caps when starting MP and turn it off when closing MP.
    It is possible: I tried now..
    I thought of putting a check in settings, which restores the previous state..
     

    nicsergio

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

    version 2.1.3 is available, changelog:
    • correct forcing Caps-Lock & Num-Lock at start-up
    • management restore forcing when MP closed (idea by Stéphane Lenclud)

    Immagine.png


    Download from repository :)
     

    Thecork

    Portal Member
    May 6, 2012
    15
    2
    37
    Great Britain (UK) Great Britain (UK)
    Hi, ive been trying to download the latest version of this, but when clicking on the file in the repository it downloads a zip file with an xml file and a folder with related files, not the installer. Can you please help.
     

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

    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 3
    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