B4J Question Detect global Hotkey for background B4J app?

Thank you Erel. Managed to get it to work - after some Google gymnastic (my lack of knowledge and skills)

Apologies for the delay in responding to you.
 
Upvote 0
Follow up on the above. I get "normal" keys (A,BC, etc) but the keyEvents remain silent when tapping Alt, Shift, Ctrl, and any of the non-alphabetic / numeric keys. What am I doing wrong?
 
Upvote 0
Thank you for offering to help.

Here is a reduced version of my code - sufficient to illustrate the problem.

TextField on form is updated with key info when key is tapped. No update to this field when shift, alt, etc is activated by user.

PS: Include jNativeHookB4J.jar in library...

The concept is a password manager that sits in background and is made visible when key combination is tapped. The form will show list of saved pwds (contained in secure local DB) User can now search for required user credentials or (in future) app may detect the last window/URL and provide the registered credentials to user. Or even fill in form when user opts the specified key combo...

I am sure you will agree that a simple single key is not ideal for this use. I would say at least a 3 key combo (user configurable) is minimum - using alt,shift or ctrl as part of the combo.
 

Attachments

  • pwder 2.zip
    26.7 KB · Views: 182
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…