Jump to content
Sign in to follow this  

While Keypressed, Do this

Recommended Posts

Hello Experts;

I am a seasoned programmer, but a total beginner with autoIt. I am trying to write a script like this:

While KeyDown(SpaceBar)


Press 1 on numpad;

Press 2 on numpad;

} Until KeyUp(SpaceBar)

off topic does autoIt use global keyboard hooks, or is it using Send cmds.

Thanks in advance!

Share this post

Link to post
Share on other sites

You'll want to look at IsPressed() and Send()

The AutoIt wiki holds a lot of information on syntax that you may want to review.

Welcome to AutoIt.


“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...