vanowm Posted June 8, 2008 Share Posted June 8, 2008 Hello! I'm looking for a way turn on/off LED lights on keyboard without emulating press a button (send command) Thank you. Link to comment Share on other sites More sharing options...
martin Posted June 8, 2008 Share Posted June 8, 2008 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. Link to comment Share on other sites More sharing options...
vanowm Posted June 8, 2008 Author Share Posted June 8, 2008 (edited) 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 June 8, 2008 by vanowm Link to comment Share on other sites More sharing options...
Cater Posted June 8, 2008 Share Posted June 8, 2008 use ^{PGDN} as {CTRL+PGDN} Example: HotKeySet("^{PGDN}", "_msg") While 1 Sleep(10) WEnd Func _msg() MsgBox(64, "", "Hotkey work") EndFunc Link to comment Share on other sites More sharing options...
vanowm Posted June 8, 2008 Author Share Posted June 8, 2008 That's how I use it, not {CTRL+PGND} (note round parentheses in my post ). But that's besides the point... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now