Dirk98 Posted September 30, 2007 Share Posted September 30, 2007 Guys, no problem with {NUMLOCK off}, {SCROLLOCK off}, but the CAPSLOCK does not change from On state to Off. Could you please suggest a solution? Many thanks. Link to comment Share on other sites More sharing options...
martin Posted September 30, 2007 Share Posted September 30, 2007 (edited) Guys, no problem with {NUMLOCK off}, {SCROLLOCK off}, but the CAPSLOCK does not change from On state to Off. Could you please suggest a solution?Many thanks.I can only add that it doesn't work for me either; I can't get it to work for or off or toggle, although sometimes toggle will make the CAPS LOCK led flash on briefly. Looks to me like the function is broken. Tried on a laptop and a PC but no good.If other people have the same problem then try reporting it as a bug.EDIT: the following post show that I just didn't know what I was talking about. I didn't know about Opt("SendCapslockMode",0). Edited September 30, 2007 by martin 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...
jvanegmond Posted September 30, 2007 Share Posted September 30, 2007 Opt SendCapslockMode Specifies if AutoIt should store the state of capslock before a Send function and restore it afterwards. 0 = don't store/restore 1 = store and restore (default) Decibel 1 github.com/jvanegmond Link to comment Share on other sites More sharing options...
Nahuel Posted September 30, 2007 Share Posted September 30, 2007 (edited) Opt("SendCapslockMode",0) Send("{CAPSLOCK OFF}") Opt("SendCapslockMode",0) While 1 Sleep(300) Send("{CAPSLOCK toggle}") WEnd -edit- Beaten: yeah, like Manadar said. -edit2- hehehe Opt("SendCapslockMode",0) Send("{CAPSLOCK OFF}") Send("{NUMLOCK OFF}") Send("{SCROLLLOCK OFF}") While 1 Sleep(100) Send("{NUMLOCK toggle}") Sleep(100) Send("{CAPSLOCK toggle}") Sleep(100) Send("{SCROLLLOCK toggle}") WEnd Edited September 30, 2007 by Nahuel Link to comment Share on other sites More sharing options...
Dirk98 Posted September 30, 2007 Author Share Posted September 30, 2007 (edited) Opt("SendCapslockMode",0) Send("{CAPSLOCK OFF}") Opt("SendCapslockMode",0) While 1 Sleep(300) Send("{CAPSLOCK toggle}") WEnd -edit- Beaten: yeah, like Manadar said. -edit2- hehehe Opt("SendCapslockMode",0) Send("{CAPSLOCK OFF}") Send("{NUMLOCK OFF}") Send("{SCROLLLOCK OFF}") While 1 Sleep(100) Send("{NUMLOCK toggle}") Sleep(100) Send("{CAPSLOCK toggle}") Sleep(100) Send("{SCROLLLOCK toggle}") WEnd Thank you very much, Manadar and Nahuel. Nahuel, I'll use your code on Christmas eve. Edited September 30, 2007 by Dirk98 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