Key Pressed
Kalipso - Form - Controls - Events - Key Pressed
Last updated
Kalipso - Form - Controls - Events - Key Pressed
Last updated
This Event doesn’t exist by default. Still, you can define to capture the pressing of a specific key or any key (Key Pressed). If you choose to capture a specific key, the Event will be triggered when you press the defined key or by Action: - Send Keys If you choose to capture any key, the Event will be triggered when you press any key or by Action: - Send Keys
Pressing a key has 2 moments: pressing down the key and releasing the key. This Event is triggered on when pressing the specified key.
Although Action ‘Send Keys’ can emulate a keyboard Event, if your intention is to simply execute the Actions of that Event, you should use Action ‘Execute Event’. Notice that the ‘Send Keys’ Action sends a message to the windows queue and you don’t control the target of the message. When using the ‘Execute Event’ no message is queued, Kalipso executes directly the Actions defined on the Event, without triggering the Event.
If you choose to capture any key, you can use Keyword KEYPRESSED to know its code.