[Lazarus] Handling the Caps Lock key

Jose Chao jose.dachao at gmail.com
Fri Dec 20 11:44:37 CET 2024


Hello everyone.
How are you Ari?
After a few changes it worked for me.
Code attached to this message.

Greetings from Pinhalzinho/SP - Brazil

José Chão


Em dom., 15 de dez. de 2024 às 14:18, Arí Ricardo Ody via lazarus <
lazarus at lists.lazarus-ide.org> escreveu:

> I posted a question earlier about how to handle and display the status of
> the CapsOn keys since my keyboard has no indicator.
>
> With the help of chatGPT I put together a small program that tries to do
> this by checking the status and trying to change the Text property of a
> TEdit object. It turns out that every time I run the program I get an
> "Access Violation". I'm attaching the project files and would like to see
> if anyone is willing to tell me what's wrong. I'm using Lazarus 3.6 on
> Windows 11.
>
> Greetings from São Paulo - Brazil
>
> Arí Ricardo
> --
> _______________________________________________
> lazarus mailing list
> lazarus at lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20241220/677a8d55/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trata_caps_lock.7z
Type: application/x-compressed
Size: 65537 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20241220/677a8d55/attachment-0001.bin>


More information about the lazarus mailing list