sending key events with shift to chromum

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.

sending key events with shift to chromum

Postby laggyluk » Wed Mar 07, 2012 12:04 pm

Hi
I'm trying to automate offscreen browser (in delphi xe2) by sending keys to flash document. Works fine with 'normal' letters but I can't make it work with '@' key
seems that chromium component ignores my shift messages?
I'm trying something like that:
chromeFOrm.chrmosr.Browser.SendKeyEvent(KT_KEYDOWN,VK_SHIFT,2752513, False, False);
chromeFOrm.chrmosr.Browser.SendKeyEvent(KT_KEYDOWN,50,196609, False, False);
chromeFOrm.chrmosr.Browser.SendKeyEvent(KT_KEYUP,50,-1073545215, False, False);
chromeFOrm.chrmosr.Browser.SendKeyEvent(KT_KEYUP,VK_SHIFT,-1070989311, False, False);

also tried pasting to form by simulating *ctrl+v but it doesn't work either

I discovered that pressing shift+2 actually generates additional WM_CHAR event shich makes this work on other pages, unfortunately my flash app treats this key as numpad arrow.
any ideas?
thanks
laggyluk
Newbie
 
Posts: 2
Joined: Wed Mar 07, 2012 11:22 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 82 guests