How to listen to keyboard events
Posted: Tue Oct 16, 2012 9:27 am
Hello,
I would like to create a simple application that performs the task of replacing text as the user types.
Example: The user types .ty and the program replaces it with Thank you.
The program would need to run in the notification area all the time and would need to listen for specific keyboard strokes. If there is a match between what the user is typing and the list of phrases that have been stored in the program, the text would be replaced.
The user would also be able to choose whichever key is used as the trigger. The above example show the period followed by letters as the trigger.
Is this possible with LiveCode?
If yes, could someone please point me in the right direction as to how to listen for keystrokes, and how to send the replacement text to the current active window.
Thank you.
Kind regards
Hylton
I would like to create a simple application that performs the task of replacing text as the user types.
Example: The user types .ty and the program replaces it with Thank you.
The program would need to run in the notification area all the time and would need to listen for specific keyboard strokes. If there is a match between what the user is typing and the list of phrases that have been stored in the program, the text would be replaced.
The user would also be able to choose whichever key is used as the trigger. The above example show the period followed by letters as the trigger.
Is this possible with LiveCode?
If yes, could someone please point me in the right direction as to how to listen for keystrokes, and how to send the replacement text to the current active window.
Thank you.
Kind regards
Hylton