Page 1 of 1

send string to active textfield in revBrowser

Posted: Thu Nov 27, 2014 3:41 pm
by Johan_VH
Hi,

my application that uses a revbrowser (CEF) is working just fine. On 2 stations the users can input text via a keyboard and it works as expected, but on the third station, only a touchscreen is available. In other words, the user has to input whatever he or she needs via a virtual keyboard.

I made a nice keyboard in a new stack and have it float above the browser, but then I hit a snag: is it at all possible to send a string to the last clicked on field in my revbrowser? I cannot have an extra script run in the webpage since the websites that the users can access are not made by me (trainschedule and busschedule sites). I've been scouring the web for info on how to do this, but so far to no avail. I'm hoping there is a way at all now...

Thanks for any help in advance!

Johan

Re: send string to active textfield in revBrowser

Posted: Fri Nov 28, 2014 1:32 pm
by Johan_VH
I'm guessing it's not going to be possible, so I was thinking of another way:
if I copy the letter corresponding to the pressed key on my virtual keyboard to the clipboard, and I can refocus to the browser, I could just have it pasted in.
But how do I get the focus back on my revBrowser via script? I cannot seem to find a way.

I tried "focus on" but so far no luck with any approach I try with that...