Polyglot keyDowns

dunbarx at aol.com dunbarx at aol.com
Sun Dec 15 15:38:04 EST 2013


Can you give an example of what you are trying to achieve when you say you want to send a message to a key? It cannot be just this, I assume:

in a button:

on mouseUp
ask "Choose a Key"
keyUp it
end mouseUp

in the card script:

on keyUp var
  answer var
end keyUp

This sends a keyUp message with a key as a parameter. Is that like sending a message to a key? What is different in what you want to do?


-----Original Message-----
From: Richmond <richmondmathewson at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sun, Dec 15, 2013 2:54 pm
Subject: Re: Polyglot keyDowns

On 15/12/13 21:35, Thierry Douez wrote:
> Does the livecode command "type" help?
> Thierry

You may be onto something, as the documentation (cough, cough) has this:

"As the type command is designed to emulate exactly what happens when a 
user types a key on the keyboard, the rawKeyDown, keyDown, rawKeyUp and 
keyUp messages are sent by the command. If these messages are blocked, 
the text will not appear in the selected field."

Now, if the keyDown, keyUP and rawKeyDown messages could be blocked, 
'type' might yield whatever character
the end-user's keyboard has specified for a particular physical key.

The ONLY problem is that I cannot find out how one might BLOCK those 


use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 


More information about the Use-livecode mailing list