Windows Messages not being picked up by CEF

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Windows Messages not being picked up by CEF

Postby litereddonut » Mon Jun 03, 2013 3:13 pm

I have a CEF applications that I want to simulate keyboard input for, while the app is in the background.

I have the app currently hooked to listen for keyboard input while the app is not the forefront window. I then use SendMessage to send the WM_KEYDOWN and WM_KEYUP commands to my app. I have also tried this with PostMessage. It doesn't seem as if CEF is picking up the windows messages I am sending.

Am I not sending all the messages I need? Does CEF not pickup these messages while it is not in the foreground?

Thanks in advance for any help.
litereddonut
Techie
 
Posts: 19
Joined: Mon Jun 03, 2013 3:06 pm

Re: Windows Messages not being picked up by CEF

Postby magreenblatt » Mon Jun 03, 2013 3:34 pm

What version of CEF are you using? What are you trying to accomplish?
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Windows Messages not being picked up by CEF

Postby litereddonut » Tue Jun 04, 2013 12:40 pm

CEF 3. I am trying to get my app to capture key usage while the app is in the background for a media player (media keys/volume control).
litereddonut
Techie
 
Posts: 19
Joined: Mon Jun 03, 2013 3:06 pm

Re: Windows Messages not being picked up by CEF

Postby magreenblatt » Tue Jun 04, 2013 12:51 pm

You should handle the media keys in your application and then use something like ExecuteJavaScript to notify the browser content.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 71 guests