Jump to content

Recommended Posts

Posted

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)
Posted

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

:)

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
×
×
  • Create New...