bill88 Posted July 14, 2009 Posted July 14, 2009 (edited) Hello, I'm having a problem with the following code: (I've made it smaller replicate the problem, that I'm having.) While (1) Send("{A up}") Sleep(100) WEnd The problem is: If the caps lock key is on, it will keep toggling the caps lock (why is this?). However, when the caps lock is not on it will not toggle it. Edited July 14, 2009 by bill88
Skruge Posted July 14, 2009 Posted July 14, 2009 Hello, I'm having a problem with the following code: (I've made it smaller replicate the problem, that I'm having.) While (1) Send("{A up}") Sleep(100) WEnd The problem is: If the caps lock key is on, it will keep toggling the caps lock (why is this?). However, when the caps lock is not on it will not toggle it. The default behavior of Send is to temporarily disable Capslock in order to send keys more accurately. (Send what you intend to send regardless of Capslock) You can override it with this:Opt("SendCapslockMode", 0) [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]
bill88 Posted July 14, 2009 Author Posted July 14, 2009 The default behavior of Send is to temporarily disable Capslock in order to send keys more accurately. (Send what you intend to send regardless of Capslock) You can override it with this:Opt("SendCapslockMode", 0) Thanks
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