How to control keyboard LEDs without affecting...

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
9 posts Page 1 of 1
Contributors
User avatar
frozerlaxegon
Top Poster
Top Poster
Posts: 84
Joined: Thu May 13, 2010 4:38 pm

Hi, I want to know how can I control the keyboard LEDs(Caps, Num, Scrl) without affecting it's actual function?
Don't get what I mean? Damn.
What I mean that is I wanted to create a function that allows the user to toggle the LEDs on the keyboard without actually toggling it, example : the caps lock light turns on but you won't be typing in CAPS.
I was trying to implement the function in Audica(sourceforge.net/projects/audica). which can control the LEDs on a PS/2 keyboard.
You've been RICKROLL'D
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

i Would like too know this, I want too see what i can create with it, haha
Image
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Hello,

I found this question interesting so I investigated and finally found some code which worked. It isnt mine and I converted the code from C# to VB and shrunk it all down to its basics for you. I use 3 buttons to toggle the LEDS and another to start a timer to make them "dance".

Download:
LEDLightsVBShort.zip
Its not the cleanest code but should get you started cooll;

Original author: Amit Engineer
Original Source: http://www.codeproject.com/KB/gadgets/T ... sg=3334286
You do not have the required permissions to view the files attached to this post.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Harlem9191
Top Poster
Top Poster
Posts: 87
Joined: Mon Jan 18, 2010 8:45 pm

I like that haha :D
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

omg codenstuff that is great, thanks for the find :D
Image
User avatar
frozerlaxegon
Top Poster
Top Poster
Posts: 84
Joined: Thu May 13, 2010 4:38 pm

Not exactly.
frozerlaxegon
Sorry, CnS, but that's not exactly what I wanted, you see, I can use the following codes :
my.computer.keyboard.sendkeys("{CAPSLOCK}")
to enable the caps lock light, but please READ the title, I wanted the keyboard light to light up but not affecting the actual usage, the code you sent to me, affects the way I type and the jumplist(Win 7) won't show up because of the timer, please note, what I wanted is simple, keyboard light without affecting anything, don't believe it can be achieved? see this program here(sourceforge.net/projects/audica), you need a PS/2 keyboard for the lights, however, I cant copy the code since it's written in VB6, and there's no converter for VB6.0 to Vb.NET, meh, I felt my ONE credit is sort of, wasted for something I not exactly wanted.
You've been RICKROLL'D
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Hello,

Hmm well I dont have VB6 but I tried the application and it works in the same way. What is happening is its making the keyboard LEDs flash but as soon as you start typing it stops the flashing and resets them to the original state...when you stop typing it starts flashing the LEDs again.

So its probably just using a keyboard hook or something and stopping the lights when a key press is detected.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

I'd assume if you want to control the keyboard LEDs without the OS thinking the lock state is on you would have to do it through a keyboard driver (or somehow send the keyboard a command without the OS noticing it).
In the old days it could have been done by writing to port 0x60.
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Not exactly.
zachman61
frozerlaxegon wrote:
Sorry, CnS, but that's not exactly what I wanted, you see, I can use the following codes :
my.computer.keyboard.sendkeys("{CAPSLOCK}")
to enable the caps lock light, but please READ the title, I wanted the keyboard light to light up but not affecting the actual usage, the code you sent to me, affects the way I type and the jumplist(Win 7) won't show up because of the timer, please note, what I wanted is simple, keyboard light without affecting anything, don't believe it can be achieved? see this program here(sourceforge.net/projects/audica), you need a PS/2 keyboard for the lights, however, I cant copy the code since it's written in VB6, and there's no converter for VB6.0 to Vb.NET, meh, I felt my ONE credit is sort of, wasted for something I not exactly wanted.
in visual basic there is a converter under tools
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
9 posts Page 1 of 1
Return to “Tutorial Requests”