pizzadude223 Posted July 4, 2010 Posted July 4, 2010 you know how this Send("+{UP 10000}") presses the up key 10,000 times. How would i substitue a key being held for a certain amount of time instead of a key being pressed 10,000 times. My computer lagges with the 10,000 presses but if I were t have it held I don't think it would.
Tvern Posted July 4, 2010 Posted July 4, 2010 According to the helpfile for Send(): Send("{a down}") ;Holds the A key down Send("{a up}") ;Releases the A key Only issue is that this doesn't seem to work for me anymore (probably since switching to win7), but maybe it works for you.
SmokNiszczyciel Posted July 4, 2010 Posted July 4, 2010 If l want script hold any key then for example l do send("{a enter"}) ? "a" means hold?
pizzadude223 Posted July 5, 2010 Author Posted July 5, 2010 Well I have xp so it might for me, but how would I put like a wait time inbetween the down and release?
Thatsgreat2345 Posted July 5, 2010 Posted July 5, 2010 You can either use sleep to wait, or a timer as well, or a loop or hotkey to wait for a key to be pressed to then stop the key being pressed down.
niubbone Posted July 5, 2010 Posted July 5, 2010 If l want script hold any key then for example l dosend("{a enter"}) ? "a" means hold?No, You do send("{a down"}).To keep it pressed, put a sleep(x) between send("{a down"}) and send("{a up"})Examplesend("{a down"})Sleep(2000)send("{a up"})Keeps a pressed for 2 seconds and exits.
pizzadude223 Posted July 5, 2010 Author Posted July 5, 2010 No, You do send("{a down"}).To keep it pressed, put a sleep(x) between send("{a down"}) and send("{a up"})Examplesend("{a down"})Sleep(2000)send("{a up"})Keeps a pressed for 2 seconds and exits.That just presses it once because of the sleep function ending it.
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