H Herbert32 Active Member Licensed User Longtime User Jun 7, 2018 #1 Hi, I need to send space and cursor-right/left to a webview in which a flash-video runs - is there a way to realize this? I have tried the following without success: Dim KC As Int KC = KeyCodes.KEYCODE_SPACE Activity_KeyPress (KC) also if i press a key at the hardware-keyboard it doesn't reach the KeyPress-Event best regards Herbert
Hi, I need to send space and cursor-right/left to a webview in which a flash-video runs - is there a way to realize this? I have tried the following without success: Dim KC As Int KC = KeyCodes.KEYCODE_SPACE Activity_KeyPress (KC) also if i press a key at the hardware-keyboard it doesn't reach the KeyPress-Event best regards Herbert
Erel B4X founder Staff member Licensed User Longtime User Jun 7, 2018 #2 Please use [code]code here...[/code] tags when posting code. The code you posted doesn't do anything except of calling the Activity_KeyPress sub. You might be able to inject JavaScript to the WebView that will do it. A better option is to switch to ExoPlayer for video playback. Upvote 0
Please use [code]code here...[/code] tags when posting code. The code you posted doesn't do anything except of calling the Activity_KeyPress sub. You might be able to inject JavaScript to the WebView that will do it. A better option is to switch to ExoPlayer for video playback.
H Herbert32 Active Member Licensed User Longtime User Jun 7, 2018 #3 Dear Erel, Thank you for your kind answer. I tried ExoPlayer before also as replacement for VideoView without success - same result now for replacing WebView with it. But I found my solution after Jim reuploaded his library by using his SendInput -Library: https://www.b4x.com/android/forum/threads/sendinput-emulate-user-input-within-your-app.38873/ btw: - how to mark a forum-entry as '[Solved]' after finding a solution? best regards Upvote 0
Dear Erel, Thank you for your kind answer. I tried ExoPlayer before also as replacement for VideoView without success - same result now for replacing WebView with it. But I found my solution after Jim reuploaded his library by using his SendInput -Library: https://www.b4x.com/android/forum/threads/sendinput-emulate-user-input-within-your-app.38873/ btw: - how to mark a forum-entry as '[Solved]' after finding a solution? best regards
Eme Fibonacci Well-Known Member Licensed User Longtime User Jun 8, 2018 #4 Herbert32 said: Dear Erel, btw: - how to mark a forum-entry as '[Solved]' after finding a solution? Click to expand... Add [Solved] to title. Upvote 0
Herbert32 said: Dear Erel, btw: - how to mark a forum-entry as '[Solved]' after finding a solution? Click to expand... Add [Solved] to title.
H Herbert32 Active Member Licensed User Longtime User Jun 8, 2018 #5 Eme Fibonacci said: Add [Solved] to title. Click to expand... Now i found 'Thread Tools' where i can change the Title also later - Thank you Upvote 0
Eme Fibonacci said: Add [Solved] to title. Click to expand... Now i found 'Thread Tools' where i can change the Title also later - Thank you