cbFUN Help :: SetLockLed

Kuvaus
Sytyttää tai sammuttaa CapsLock, NumLock tai Scroll Lock valon näppäimistöstä.
Samalla möys tämä ominaisuus tulee käyttöön.


Käyttö
SetLockLed(butt, mode = 1)
butt = Muutettavan ledin näppäin.
1 = NUM LOCK
2 = CAPS LOCK
3 = SCROLL LOCK
mode = Ledin tila.
1 = Päällä
0 = Sammutettu


Esimerkki
Include "cbFUN\cbFUN.cb"
			
Dim LED(3) 
Repeat
	If i = 8 Then i = 0 'eri tiloja 8 kpl
    	If i = 0 Then LED(1) = 0: LED(2) = 0: LED(3) = 0
    	If i = 1 Then LED(1) = 0: LED(2) = 0: LED(3) = 1
    	If i = 2 Then LED(1) = 0: LED(2) = 1: LED(3) = 0
    	If i = 3 Then LED(1) = 0: LED(2) = 1: LED(3) = 1
    	If i = 4 Then LED(1) = 1: LED(2) = 0: LED(3) = 0
    	If i = 5 Then LED(1) = 1: LED(2) = 0: LED(3) = 1
    	If i = 6 Then LED(1) = 1: LED(2) = 1: LED(3) = 0 
    	If i = 7 Then LED(1) = 1: LED(2) = 1: LED(3) = 1
    	i = i + 1
    	SetLockLed(1, LED(1))
    	SetLockLed(2, LED(2))
    	SetLockLed(3, LED(3))
    	Wait 100
    	DrawScreen
Forever