Sign in to follow this  
Followers 0
King

How do you hold a key?

2 posts in this topic

Ok instead of pressing a button 12 times say i want to hold the button down for 12 seconds.

For instance instead of doing this.

Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

Share this post


Link to post
Share on other sites



Ok instead of pressing a button 12 times say i want to hold the button down for 12 seconds.

For instance instead of doing this.

Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)

    Send("{Left Arrow}") 
        Sleep(1000)
Send("{a down}") ;Holds the A key down
Sleep(12000) ; 12 Sec
Send("{a up}") ;Releases the A key

Send("{S 30}") ;Sends 30 'S' characters

:)

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