On 12/01/15 22:40, Mike Bonner wrote:
Would the type command do what you want?

 From the dictionary:
Note: 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.

It's a thought.

This works very well indeed:

on mouseUp
  type "Q"
end mouseUp

on rawKeyDown RAWK
  put RAWK
end rawKeyDown

I get 81
------------------------------

Richmond.



On Mon, Jan 12, 2015 at 1:33 PM, Richmond <[email protected]>
wrote:

I can do this sort of thing:

send "mouseUp" to btn "BONKERS"

it would be lovely if one could also do this sort of thing:

send "keyUp" to rawKey ID 113

[ oddly enough the scriptEditor doesn't find any errors in that: it is
only on attempted operation
that the IDE throws a "bluey" ]

this could be used for detecting what sort of keyboard layout an end-user
was using.

------------------------------------------

How does one get Livecode to send signals to USB peripherals?

Richmond.

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to