Fake typing?

Richmond richmondmathewson at gmail.com
Mon Jan 12 16:00:51 EST 2015


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 <richmondmathewson at gmail.com>
> 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
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list