Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2024-12

Handling the Caps Lock key

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Arí Ricardo Ody

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20241215/01fd874f/attachment-0001.htm> -------------- next part --------------
A non-text attachment was scrubbed...
Name: trata_caps_lock.7z
Type: application/octet-stream
Size: 65423 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20241215/01fd874f/attachment-0001.obj>

Reply by email

Jose Chao
to Arí Ricardo Ody

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 <

Show quoted text 21 lines
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 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>

Reply by email

Jose Chao
to Jose Chao

Por favor, remova a linha Sleep(50) do evento OnTimer.

Sauda??o de Pinhalzinho/SP - Brasil

Jos? Ch?o

Jose Chao wrote 33 lines
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 < > 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 > > https://lists.lazarus-ide.org/listinfo/lazarus >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20241220/90030449/attachment.htm>

Reply by email