Jump to content
Sign in to follow this  
MrPhillang

Hold down a key?

Recommended Posts

MrPhillang

So I tried using the AutoIt3 Help File for holding down a key and it gave me this:

Send("{a down}") ;Holds the A key down
    Send("{a up}") ;Releases the A key

But it just presses the key down once, it doesn't continuously press it down.

Share this post


Link to post
Share on other sites
MrPhillang

I've also tried that testing it out on Notepad, but it just didn't seem to work.

Why did you post and delete? ._.

Edited by MrPhillang

Share this post


Link to post
Share on other sites
Jos

It does constantly press it down but will not do repeat which only happens on the physical keyboard.

Just make a loop in which you send() the character.

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
MrPhillang

Thank you Jos, that helped med a lot :]

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  

×