Jump to content

Hold Shift Key


 Share

Recommended Posts

hi, I want the Shift key to be pressed for a defined period of time. For this, I am using this (test)script:

Send("{LSHIFT down}") 
  sleep(1000)  
  Send("{LSHIFT up}")
  sleep(50)
  EXIT

But after the script is turned off or whatever the Shift key is still pressed.

The LSHIFT (or RSHIFT) up doesn't seem to work (the same for the ALT key)

How can I fix it ?

thx

Link to comment
Share on other sites

hi, I want the Shift key to be pressed for a defined period of time. For this, I am using this (test)script:

Send("{LSHIFT down}") 
  sleep(1000)  
  Send("{LSHIFT up}")
  sleep(50)
  EXIT

But after the script is turned off or whatever the Shift key is still pressed.

The LSHIFT (or RSHIFT) up doesn't seem to work (the same for the ALT key)

How can I fix it ?

thx

try this

Send("{SHIFTDOWN}") 
  sleep(1000)  
  Send("{SHIFTUP}")
  sleep(50)
  EXIT
Link to comment
Share on other sites

sticky keys is off, but i'll try a bit :)

I found a little workaround, but its not very nice :P I wrote a little program wich uses keyb_event to release the shift key every 50ms and for

"holding" the key, i made a little loop.

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...