Jump to content

Send keys instantly


Guillermo
 Share

Recommended Posts

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

Link to comment
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")


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

Link to comment
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.

Link to comment
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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...