C catyinwong Active Member Licensed User Longtime User Aug 4, 2019 #1 I want to write an app which can read the keyboard keys when a user is typing. for example when the user type "a", then the app service will speak "a". can our accessibility service library do that? I.e. listen to the keyboard input and then raise an event?
I want to write an app which can read the keyboard keys when a user is typing. for example when the user type "a", then the app service will speak "a". can our accessibility service library do that? I.e. listen to the keyboard input and then raise an event?
C catyinwong Active Member Licensed User Longtime User Aug 4, 2019 #2 https://juejin.im/entry/5897f093128fe1006cb6fcf5 searched on the net for a bit. please see if (and how) the above example codes can work with B4A. Many thanks. Upvote 0
https://juejin.im/entry/5897f093128fe1006cb6fcf5 searched on the net for a bit. please see if (and how) the above example codes can work with B4A. Many thanks.
moster67 Expert Licensed User Longtime User Aug 5, 2019 #3 Should be possible using my accessibility services wrapper https://www.b4x.com/android/forum/t...users-with-disabilities-automation-etc.95216/ Upvote 0
Should be possible using my accessibility services wrapper https://www.b4x.com/android/forum/t...users-with-disabilities-automation-etc.95216/
C catyinwong Active Member Licensed User Longtime User Aug 5, 2019 #4 moster67 said: Should be possible using my accessibility services wrapper https://www.b4x.com/android/forum/t...users-with-disabilities-automation-etc.95216/ Click to expand... may I have an example code or hints for doing that? i still don't understand the structure of the library.. which event or setting should I use? Upvote 0
moster67 said: Should be possible using my accessibility services wrapper https://www.b4x.com/android/forum/t...users-with-disabilities-automation-etc.95216/ Click to expand... may I have an example code or hints for doing that? i still don't understand the structure of the library.. which event or setting should I use?
moster67 Expert Licensed User Longtime User Aug 5, 2019 #5 catyinwong said: may I have an example code or hints for doing that? i still don't understand the structure of the library.. which event or setting should I use? Click to expand... For your requirements, I haven't investigated much but the wrapper covers most scenarios. It can indeed be a bit tricky but if you follow the WhatsApp sample posted by me and looking at the code you linked to, you should be able to figure it out. If not, as mentioned in the library thread, I could probably make things easier by doing a custom-library. If this is something which may interest you, then contact me by PM and we can discuss it further. Upvote 0
catyinwong said: may I have an example code or hints for doing that? i still don't understand the structure of the library.. which event or setting should I use? Click to expand... For your requirements, I haven't investigated much but the wrapper covers most scenarios. It can indeed be a bit tricky but if you follow the WhatsApp sample posted by me and looking at the code you linked to, you should be able to figure it out. If not, as mentioned in the library thread, I could probably make things easier by doing a custom-library. If this is something which may interest you, then contact me by PM and we can discuss it further.
C catyinwong Active Member Licensed User Longtime User Aug 5, 2019 #6 searched on the sources for a bit, seems like the tutorial example (the one with whatsapp) does not catch the "TYPE_VIEW_TEXT_CHANGED" event. is it because of the setting in the manifest editor or something else? Upvote 0
searched on the sources for a bit, seems like the tutorial example (the one with whatsapp) does not catch the "TYPE_VIEW_TEXT_CHANGED" event. is it because of the setting in the manifest editor or something else?