Sign in to follow this  
Followers 0
Pfaeff

Hold Shift Key

7 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

hm, this doesnt work either...

The Shift Button is still pressed after SHIFTUP

I have the same problem with ALT, too

Edited by Pfaeff

Share this post


Link to post
Share on other sites

hm, this doesnt work either...

The Shift Button is still pressed after SHIFTUP

oh try this then

dose ur keyboard have a F lock key if so press it once...

then run the script..

Share this post


Link to post
Share on other sites

there is no f Lock key on my keyboard ^^

Share this post


Link to post
Share on other sites

there is no f Lock key on my keyboard ^^

is caps lock on...

Also hold down scift key for 5 secs and see i sticky keys it on if yes hold done shift again for 5 secs to turn it off..

If sitcky keys is off you have fixed it....

Share this post


Link to post
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.

Share this post


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
Sign in to follow this  
Followers 0