Jump to content

Caps lock problem


Recommended Posts

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 by bill88
Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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 :)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...