Welcome Guest Search | Active Topics | Sign In | Register

EO Webbrowser SendKeys Not Working Options
Michael Thompson
Posted: Wednesday, April 20, 2016 4:48:50 AM
Rank: Member
Groups: Member

Joined: 4/17/2016
Posts: 11
Hi, I would like to report a bug.

webView SendKeyEvent is not working for normal keyboard keys, i.e. 0 to 9, A - Z.

It works only for ctrl-A, ctrl-C etc, i.e. combination of keys but not for single keypress.

Working
eoWebView.SendKeyEvent(true, KeyCode.V, EventFlags.ControlDown);

Not Working
eoWebView.SendKeyEvent(true, KeyCode.V);
OR
eoWebView.SendKeyEvent(true, KeyCode.V, EventFlags.None);
eo_support
Posted: Wednesday, April 20, 2016 8:36:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

You will need to use SendChar for keypress event. Otherwise you will need to use SendKeyEvent(down) and SendKeyEvent(up) pair, which is not reliable since the key may repeat in between.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.