Polling/probing the keyboard?

william humphrey bill at bluewatermaritime.com
Sun Dec 22 13:59:01 EST 2013


If this was possible to do on Mac OS why does Apple have you
physically hit the keys on the keyboard when you add a new keyboard
(by plugging it in USB or over Bluetooth). If the keyboard could be
told to send that data it would be much easier.

On Sat, Dec 21, 2013 at 5:11 AM, Richmond <richmondmathewson at gmail.com> wrote:
> On 21/12/13 09:39, As_Simon wrote:
>>
>> Hi Richond,
>> I just did a vb script for send keys today;
>>
>> Set WshShell = WScript.CreateObject("WScript.Shell")
>> WshShell.AppActivate "Untitled 1 *"
>> Wscript.Sleep 1000 'wait 1 seconds
>> WshShell.SendKeys "abcdefghijklmnopqrstuvwxyz"
>> WshShell.SendKeys "{ENTER}"
>> WScript.Quit
>>
>> With that and a running exe (title bar "Untitled 1 *) the keys get caught
>> by
>> the stack.
>> Not sure if that helps you but I figure you might then be able to map the
>> keys.
>>
>> Simon
>>
>>
> That's jolly clever.
>
> However, at the risk of being a damp squib, I am wondering if there is a way
> to do this inwith Livecode for 2 sound reasons:
>
> 1. vb script would tie one to Windows; as pretty well any script would tie
> one to a specific operating system.
>
> 2. Livecode's greatest strength is that one develop something on one
> platform and then deploy it all over the place.
>
> 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



-- 
http://www.bluewatermaritime.com




More information about the Use-livecode mailing list