Sign in to follow this  
Followers 0
GoalStopper

Send 2 keys at same timie

4 posts in this topic

I need to be able to send an Esc key and a Pause key at the same time. Or if there is a way to hold down the Esc key and send the Pause key. Is this possible?

thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Have you tried reading the documentation?

To hold a key down (generally only useful for games)

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

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

I am not sure if this will work with Esc but you should try it.

*** Matt @ MPCS

Edited by Matt @ MPCS

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

This should work. See remarks in the documentation of the Send function for more info.

Send("{Esc down}")

Send("{Pause}")

Send("{Esc up}")

Edit: Dang, too slow in posting because I tested the keys :)

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

I send 2 keys all the time for in game macros.

example

send ("!3")

will trigger alt+3

you can also do

send ("ALT{3}")

type send into the search helpfile for a list of send commands.

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