B4J Question Pressed Key on keyboard

geps

Member
Licensed User
Longtime User
Please help me.
How can I query the keyboard?
for example:
when i press the letter "a" or "b" , a sub will be called
I can not find anything on the web.
 

Roycefer

Well-Known Member
Licensed User
Longtime User
If you only want this behavior when the user is inside your app, you can try trapping the focus in a TextField and using the tf_TextChanged event.

If you want this behavior even when the user is not inside your app, check out the jNativeHookB4J library.
 
Last edited:
Upvote 0

geps

Member
Licensed User
Longtime User
If you only want this behavior when the user is inside your app, you can try trapping the focus in a TextField and using the tf_TextChanged event.

If you want this behavior even when the user is not inside your app, check out the jNativeHookB4J library.

Thanks for info
 
Upvote 0
Top