Mdiai Keys - volume / play/pause/next...

Bob Sneidar bobsneidar at iotecdigital.com
Mon Oct 23 11:33:32 EDT 2023


Whoops! You were talking about media keys of course. I DO get values in a rawKeyUp handler for arrow keys and the others I mentioned. Not for the media keys though. You can just see why. All the other keys are part of a standard ANSI style keyboard. The media keys are not so far as I can tell, as common as it is to have them on a virtually every desktop keyboard these days. 

Bob S


> On Oct 23, 2023, at 8:22 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I have in the past was unable to trap a key event for arrow keys. I think Jacque is right I do not think the system deals with arrow keys the way other keys work. They do not send any kind of ascii code, so LC would have to monitor them differently. Does the insert, home page up and page down buttons return anything? If not then I think that validates the idea that LC is only looking for ASCII style events. 
> 
> Bob S
> 
> 
>> On Oct 20, 2023, at 8:08 AM, David Bovill via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Is there a way to trap for these keyboard events.
>> 
>> Volume and Media Keys: In the HID standard, volume and media control keys
>> often have specific usage IDs. For example:
>> 
>> 
>>  - 0xE9 is for volume up.
>>  - 0xEA is for volume down.
>>  - 0xE2 is for mute.
>>  - 0xCD is for play/pauseetc
>> _______________________________________________
>> 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