NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 42 43 44 45 46 … 93 Next »
Form KeyDown Event Problems

 
  • 0 Vote(s) - 0 Average
Form KeyDown Event Problems
HydroChronic
Offline

Member

Posts: 106
Threads: 23
Joined: Jan 2007
#1
2007-07-12, 02:10 PM (This post was last modified: 2007-07-12, 02:15 PM by HydroChronic.)
Hey Guys,

I am working on an alternate internal video player within my Plugin. I have based my internal player on UbuStream's WMP Player, but I have tweaked the interface and added my own features to some of the standard keyboard shortcuts (mainly to include marking commercials in the recording). But this is where I have run into my problem.

In order for player to be completely controlled by a remote control I have added an event listener to the Form's Keydown event. This works great except for one situation. When the user enters fullscreen mode, exits fullscreen mode and then re-enters fullscreen mode the Ctrl+F (fast forward button) and CTRL+B (blue button) no longer trigger the Keydown event. The only way that I have been able to find to solve this is to click on another component on the form other than the WMP ActiveX Component.

In order to put the form into a true fullscreen mode I have used a couple of Windows API calls. As documented by Microsoft (although I don't have the article handy), any form which takes up the entire screeen and a BoarderStyle of none will be recognized as a fullscreen form and automatically cover the taskbar. So in order to do that I use GetSystemMetrics() to get the size of the screen and then use SetWindowPos() to move the window to the top-left corner of the screen and resize it to be the size of the screen and finally maximize and remove the boarder of the form.

I will post my entire source code package when I get to work, I am pretty sure most everything else works (although feedback is always good). There are two libraries which you will need to put into your GBPVR directory in order to run the Plugin. These can be found in the "\Debug\bin" directory of the source code and are named "AxInterop.WMPLib.dll" and "Interop.WMPLib.dll".

Any help is much appreciated since I have been struggling with this for the past couple of weeks and I am completely out of ideas.
HydroChronic
Offline

Member

Posts: 106
Threads: 23
Joined: Jan 2007
#2
2007-07-17, 02:09 PM
Not to bump this back to the top of the posting list, but I solved my problem by introducing my own message filter (or message pump) to my form by implementing the IMessageFilter interface. Essentially what I did was make my own KeyDownEvent which is called before any other event is called so that I catch all key presses. Anyway, if anyone else is having these types of problems I am glad to share my source and I will be posting it on the wiki when I make my first full release later this week.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Windows UWP App spitefulgod 4 3,803 2016-12-15, 08:35 PM
Last Post: spitefulgod
  Recording Event jrockow 10 4,680 2014-07-28, 02:51 PM
Last Post: jrockow
  Key press problems imilne 13 4,847 2013-01-02, 04:05 PM
Last Post: imilne
  Plugin problems with started from the command line mvallevand 11 4,975 2012-08-12, 07:56 PM
Last Post: sub
  Event codes mvallevand 10 3,772 2011-04-06, 04:26 AM
Last Post: mvallevand
  "Rating" in cached event details xml alibert 74 16,711 2011-03-28, 01:06 AM
Last Post: zehd
  STARTUP_COMPLETE event on NMT alibert 6 2,329 2011-02-12, 05:15 PM
Last Post: sub
  NPVR - temporary solution to lack of searchable fields after event is gone from guide carpeVideo 5 2,213 2010-09-29, 03:08 AM
Last Post: mvallevand
  problems with screen updates from ActivateItem InVermont 2 1,707 2009-03-12, 04:45 PM
Last Post: InVermont
  How do I catch the event where a list item is selected? mkenyon2 3 1,415 2009-01-06, 06:36 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode