If Capslock is ON,..

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

amu lojes(Posted 2006) [#1]
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?


Amon(Posted 2006) [#2]
If keydown(capslock)
text 100,100 capslock is on
else
text 100,100,capslock is off
end if


something like that?


xlsior(Posted 2006) [#3]
Maybe he wants to programmatically toggle the state of the capslock?


Beaker(Posted 2006) [#4]
My code here should help.