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
keyBoard.TextChanged += new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler
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