If Capslock is ON,..

BlitzPlus Forums/BlitzPlus Beginners Area/If Capslock is ON,..

i wish to write a program like written below

graphics 640,480
setbuffer backbuffer()

while not keyhit(1)

if capslock = ON ; i wont press Caplock to make it ON
text 100,100,"Capslock is ON"
endif

if capslock = OFF ; i wont press capslock to make it OFF

text 100,100,"capslock is OFF"
endif

flip
cls
wend



any help?

If keydown(capslock)
text 100,100 capslock is on
else
text 100,100,capslock is off
end if


something like that?

Maybe he wants to programmatically toggle the state of the capslock?

My code here should help.