PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Sendkey (CAPSLOCK)
Sendkey (CAPSLOCK)
Started by David, Jun., 08 2004 1:16 PM - 1 reply
Posted on June, 08 2004 - 1:16 PM
Hello...
I'm trying to create a simple keyboard and i need to turn on and off the
CAPSLOCK but i don't know how. To the other keys the SENDKEY function works
fine but with CAPSLOCK AND SCROLLLOCK it doesn't work. Does anyone know how
to pull this out?
Posted on June, 08 2004 - 2:35 PM
David,
the only way i found to do this is in the code of every button to send diferent
values if the user press the caps button like this :

IF CAPS_PRESSED THEN
SendKey("A")
ELSE
SendKey("a")
END

In the CAPS button :
CAPS_PRESSED = NOT CAPS_PRESSED


"David" <david@mail.s2l.pt> wrote:


Hello...
I'm trying to create a simple keyboard and i need to turn on and off the
CAPSLOCK but i don't know how. To the other keys the SENDKEY function works
fine but with CAPSLOCK AND SCROLLLOCK it doesn't work. Does anyone know

how
to pull this out?