nima8686 New Member Jan 31, 2022 #1 hello i want to write a keylogger in b4a but i dont know how ? can you help me ?
Computersmith64 Well-Known Member Licensed User Longtime User Feb 1, 2022 #2 Are you trying to figure out the logic, or the actual code? I don't think anyone will write the code for you, but here's some info on how to use the accessibility service to log keystrokes. You can probably work out how to get started from there... https://stackoverflow.com/questions/27245185/android-key-logger - Colin. Upvote 0
Are you trying to figure out the logic, or the actual code? I don't think anyone will write the code for you, but here's some info on how to use the accessibility service to log keystrokes. You can probably work out how to get started from there... https://stackoverflow.com/questions/27245185/android-key-logger - Colin.
Sandman Expert Licensed User Longtime User Feb 1, 2022 #3 Why on earth do you want to write a keylogger?? Upvote 0
nima8686 New Member Feb 1, 2022 #4 Computersmith64 said: Are you trying to figure out the logic, or the actual code? I don't think anyone will write the code for you, but here's some info on how to use the accessibility service to log keystrokes. You can probably work out how to get started from there... https://stackoverflow.com/questions/27245185/android-key-logger - Colin. Click to expand... i just want to know b4a has a class or library to make it possible to listem to keyboard? Upvote 0
Computersmith64 said: Are you trying to figure out the logic, or the actual code? I don't think anyone will write the code for you, but here's some info on how to use the accessibility service to log keystrokes. You can probably work out how to get started from there... https://stackoverflow.com/questions/27245185/android-key-logger - Colin. Click to expand... i just want to know b4a has a class or library to make it possible to listem to keyboard?
Computersmith64 Well-Known Member Licensed User Longtime User Feb 1, 2022 #5 nima8686 said: i just want to know b4a has a class or library to make it possible to listem to keyboard? Click to expand... Well the obvious choice would be to use the Android Accessibility Service, but looking at the documentation for the B4A Accessibility library it looks like only a subset of that functionality has been implemented - & there doesn't appear to be any functionality that would support key logging. If you were going to go down that path you'd have to use JavaObject calls to get it done. On top of that, Android won't let you just run a background key logging service (for obvious reasons) without jumping through various security hoops, including having the user explicitly set permissions to allow it. I think (again for obvious reasons) if you want to get any serious assistance from this forum on this you'll probably need to explain in some more detail what you are trying to do & why. - Colin. Upvote 0
nima8686 said: i just want to know b4a has a class or library to make it possible to listem to keyboard? Click to expand... Well the obvious choice would be to use the Android Accessibility Service, but looking at the documentation for the B4A Accessibility library it looks like only a subset of that functionality has been implemented - & there doesn't appear to be any functionality that would support key logging. If you were going to go down that path you'd have to use JavaObject calls to get it done. On top of that, Android won't let you just run a background key logging service (for obvious reasons) without jumping through various security hoops, including having the user explicitly set permissions to allow it. I think (again for obvious reasons) if you want to get any serious assistance from this forum on this you'll probably need to explain in some more detail what you are trying to do & why. - Colin.
moster67 Expert Licensed User Longtime User Feb 1, 2022 #6 Well, I posted some years ago a wrapper for Accessibility Services showing off WhatsApp automation. https://www.b4x.com/android/forum/t...users-with-disabilities-automation-etc.95216/ I know the wrapper has been used for many other purposes. If it would support your requirements, I don't know but it can surely be extended. Upvote 0
Well, I posted some years ago a wrapper for Accessibility Services showing off WhatsApp automation. https://www.b4x.com/android/forum/t...users-with-disabilities-automation-etc.95216/ I know the wrapper has been used for many other purposes. If it would support your requirements, I don't know but it can surely be extended.
Sandman Expert Licensed User Longtime User Feb 1, 2022 #7 Sandman said: Why on earth do you want to write a keylogger?? Click to expand... I think this still is a valid question. Especially for a brand new member of the forum where this thread is their first. Upvote 0
Sandman said: Why on earth do you want to write a keylogger?? Click to expand... I think this still is a valid question. Especially for a brand new member of the forum where this thread is their first.