Sign in to follow this  
Followers 0
Guillermo

Send keys instantly

5 posts in this topic

I'd like to know if it's possible to make AutoIt send keys in block - that is, not by typing them one by one.

I've tried using ClipPut() / ClipGet() but I'm at my workplace (WinXPPro), and it doesn't work. I think it has to do with my account rights, because generally it does the trick on my home PC (WinXPPro).

Thanks in advance,

Guillermo ;)

Share this post


Link to post
Share on other sites



I'd like to know if it's possible to make AutoIt send keys in block - that is, not by typing them one by one.

I've tried using ClipPut() / ClipGet()  but I'm at my workplace (WinXPPro), and it doesn't work. I think it has to do with my account rights, because generally it does the trick on my home PC (WinXPPro).

Thanks in advance,

Guillermo  ;)

<{POST_SNAPBACK}>

Read up on send in help file

send("abcdefgh")


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Welcome to the forums!

Using ClipPut() will only place the desired information onto the clipboard -- it's your task to then paste that information into your desired program. Generally this command will do precisely that:

send("^v")

Hope that answers your question.

Share this post


Link to post
Share on other sites

Alright, I made a fool of myself with that question.

I thought ClipGet() was intended to do exactly that, but its behaviour is different to Send("^v").

So I understand there's no other way of sending "blocks of characters", right?

Thx,

Guillermo

Share this post


Link to post
Share on other sites

"blocks of characters" *can* be sent via the send("^v") code that LxP gave you...

Let's say that the Windows clipboard contains this text:

This is just some text.

After running this line of code:

$var = ClipGet()

the variable named "var" will now contain the text

This is just some text.

After running this line of code:

ClipPut("This is just some DIFFERENT text.")

The Windows clipboard will contain this text:

This is just some DIFFERENT text.

Running this line of code:

Send ("^v")

AutoIt will send

This is just some DIFFERENT text.

to whatever application window is in focus at the time.

Also, take a look in the help file at SendKeyDelay


[size="1"][font="Arial"].[u].[/u][/font][/size]

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