How do I create a OSD keyboard? (1 Viewer)

hobbes487

Portal Pro
August 25, 2005
208
3
Home Country
United States of America United States of America
Title says it all. I can't find any explaination about how to implement a OSD keyboard. Can someone give a simple example of the skin and C# parts.

Thanks
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
This code will show it:

Code:
VirtualSearchKeyboard keyBoard = (VirtualSearchKeyboard)GUIWindowManager.GetWindow(1001);
keyBoard.Text = String.Empty;
keyBoard.Reset();
keyBoard.DoModal(activeWindow); // show it...

// keyBoard.Text will give you the input once the user has closed the keyboard

If you want to be notified everytime a key is pressed on the keyboard, you can subscribe to the events like so:

Code:
keyBoard.TextChanged += new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler

Sam
 

mzemina

Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,064
    14
    Tulsa, OK
    Home Country
    United States of America United States of America
    I believe Vanessa is willing (at least she was wanting to make some changes back a few weeks ago - I believe to the OSD of the keyboard) to make graphic changes. I maybe talking incorrectly but Vanessa will correct if that is the case.

    Mike
     

    hobbes487

    Portal Pro
    August 25, 2005
    208
    3
    Home Country
    United States of America United States of America
    This code will show it:

    Code:
    VirtualSearchKeyboard keyBoard = (VirtualSearchKeyboard)GUIWindowManager.GetWindow(1001);
    keyBoard.Text = String.Empty;
    keyBoard.Reset();
    keyBoard.DoModal(activeWindow); // show it...
    
    // keyBoard.Text will give you the input once the user has closed the keyboard

    If you want to be notified everytime a key is pressed on the keyboard, you can subscribe to the events like so:

    Code:
    keyBoard.TextChanged += new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler

    Sam


    thanks. what is activeWindow in your example? also, do I need to add somehting to the skin file?

    EDIT: i figured it out. thanks!
     

    CyberDannen

    Portal Member
    May 31, 2006
    46
    1
    Berlin
    Home Country
    Germany Germany
    Hello,
    I have one more Question...


    where kann I add the Prozess for..(keyboard_textChanged)?

    keyBoard.TextChanged += new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler

    Examble:
    public void keyboard_Textchanged() ?

    thx
     

    Users who are viewing this thread

    Similar threads

    I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV Server development looks dead so I'm afraid you're going to have to figure that out by yourself if it's even possible.
    I meant use MP client to try to spot how it's requesting streams for specific channels and then try to do the same with VLC. TV...
    Hi everyone, I've set up Mediaportal TV Server on a Windows 11 box, tuner deteced okay, scanned channels, can preview, all seems...
    Replies
    8
    Views
    1K
    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    This thread is intended for skin authors, plus those advanced users who have learnt skin programming and have customised the skins...
    Replies
    1
    Views
    2K
    4.5 is really old. I'm not sure 4.5.5 even is a version that actually existed. You should be able to install .NET Framework 4.8.0 on Windows 7 SP1
    4.5 is really old. I'm not sure 4.5.5 even is a version that actually existed. You should be able to install .NET Framework 4.8.0...
    My TV PC is more a cast-off on older hardware (a 'Quiet PC' i5 4690, 16GB ram, 2xSSD 1xHDD, system graphics), mainly as a cheap way...
    Replies
    5
    Views
    2K
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for any entry in your music database: Artist, Album, Title, Lyrics... I'm afraid there is no such plugin :unsure:
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for...
    HI, I'm new to MediaPortal and have a question about searching for data. I have an extensive collection of music, films, and TV...
    Replies
    1
    Views
    3K
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I don't have a fundamentally different solution for you, but with this approach you should achieve your goal. ;) The idea of first setting the current genre colors with the defines is certainly a good one, as...
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I...
    Good afternoon, Does anyone know a way of referencing the genre colour of the currently selected item in the TV Guide. We are all...
    Replies
    4
    Views
    2K
    Top Bottom