handle F10 key in flash

DLL Edition of the F-IN-BOX
digisakai
Posts: 2
Joined: Wed Dec 12, 2007 9:02 am

handle F10 key in flash

Postby digisakai » Wed Dec 12, 2007 9:24 am

I wanna handle F10 key from flash
I added WM_SYSKEYDOWN handler to pretranslate message.
and resend WM_KEYDOWN to flash.

But my flash can't handle only F10 key

How can I do it?

like this:
if (pMsg->message==WM_SYSKEYDOWN){
if (pMsg->wParam==VK_F10){
::SendMessage(m_hwndFlashPlayerControl,WM_KEYDOWN,
pMsg->wParam,pMsg->lParam);
return 1;

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Wed Dec 12, 2007 9:35 am

Thank you for your question.

Try that:

Code: Select all

::SendMessage(GetWindow(m_hwndFlashPlayerControl, GW_CHILD),WM_KEYDOWN,
pMsg->wParam,pMsg->lParam);


instead of:

Code: Select all

::SendMessage(m_hwndFlashPlayerControl,WM_KEYDOWN,
pMsg->wParam,pMsg->lParam);
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

digisakai
Posts: 2
Joined: Wed Dec 12, 2007 9:02 am

SUCCESS: thanks

Postby digisakai » Wed Dec 12, 2007 9:53 am

I could handle F10 key!!

thanks for your quick reply


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 27 guests

cron