Jump to content

Is it possible to double space as ctrl key?


Recommended Posts

I want the space key to work like Ctrl after 200 ms of being pressed. So, in theory it should work like this:

while space key is press down {
  for first 200 ms {
    if another key is pressed or space key released {
      work like normal space
      go no further
    }
  }
  after first 200 ms {
    if another key <Key> is pressed {
      Send Ctrl+Key
    }
  }
}

Is it possible with Autoit?

Link to post
Share on other sites

I am sorry I wasn't clear. I meant double as in "double meaning". My aim is to use home row keys as modifiers (here `space` is meant to be just an example) while preserving their normal behavior in most cases. Towards that goal, I want a non-modifier key to act as a certain modifier key on long press. If the key gets released before any other key presses, it should behave like the original non-modifier key.

Link to post
Share on other sites
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...