Jump to content
Sign in to follow this  
vanowm

How to control LED lights on keyboard?

Recommended Posts

vanowm

Hello!

I'm looking for a way turn on/off LED lights on keyboard without emulating press a button (send command)

Thank you.

Share this post


Link to post
Share on other sites
martin

Hello!

I'm looking for a way turn on/off LED lights on keyboard without emulating press a button (send command)

Thank you.

What is wrong with using Send"{CAPSLOCK on}") etc.?

For turning the leds off without using send or pressing keys I find a can of black spray paint works quite well. Turning them back on is a bit of a problem because the paint remover tends to dissolve the keyboard.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
vanowm

Well, in my script I've tried use it (created a loop that would turn on and off the scrolllock led, make it blink) and while it was blinking I had problem with CTRL key, like other hotkeys (CTRL+PGDN) wouldn't work

Other problem with this method, that in some applications scrolllock key might be used for something, and using Send("{CAPSLOCK on}") might create unexpected results.

In my research on google, I've found some console .exe files that can do that, but that method is not acceptable either for blinking effects for performance reason and possible annoying side effect if you have a sound set when executing an application in the system (Control panel -> Sounds -> Open program)

Edited by vanowm

Share this post


Link to post
Share on other sites
Cater

use ^{PGDN} as {CTRL+PGDN}

Example:

HotKeySet("^{PGDN}", "_msg")

While 1
    Sleep(10)
WEnd

Func _msg()
    MsgBox(64, "", "Hotkey work")
EndFunc

Share this post


Link to post
Share on other sites
vanowm

That's how I use it, not {CTRL+PGND} (note round parentheses in my post :)).

But that's besides the point...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.