Pfaeff Posted August 14, 2007 Posted August 14, 2007 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
ashley Posted August 14, 2007 Posted August 14, 2007 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 Free icons for your programs
Pfaeff Posted August 14, 2007 Author Posted August 14, 2007 (edited) hm, this doesnt work either... The Shift Button is still pressed after SHIFTUP I have the same problem with ALT, too Edited August 14, 2007 by Pfaeff
ashley Posted August 14, 2007 Posted August 14, 2007 hm, this doesnt work either...The Shift Button is still pressed after SHIFTUPoh try this thendose ur keyboard have a F lock key if so press it once...then run the script.. Free icons for your programs
ashley Posted August 14, 2007 Posted August 14, 2007 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.... Free icons for your programs
Pfaeff Posted August 14, 2007 Author Posted August 14, 2007 sticky keys is off, but i'll try a bit I found a little workaround, but its not very nice 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.
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