Jump to content

Copy and Paste data by typing it


Recommended Posts

Hi everyone,

I hope I can make myself clear because English is not my native language.

Basically I need to Copy using the key " Ctrl+C" a text such as " 21042017" and Paste using the key " Ctrl +P"  but the Pasting Process should work like each letter is typed in.

The process should be 

1. Copy text to clip board

2. Get the text string from clipboard

3. Split the string

4. Send the string 

Can anyone give me the code in Autoit ? Thank you

Link to comment
Share on other sites

  • Developers
19 minutes ago, thandong19 said:

Can anyone give me the code in Autoit ? Thank you

Nah ... doesn't work like that unless you are prepared to pay $200 per hour. ;)

You already have the steps listed so what have you tried and found out already by opening the helpfile?

Jos

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

Link to comment
Share on other sites

11 minutes ago, Jos said:

Nah ... doesn't work like that unless you are prepared to pay $200 per hour. ;)

You already have the steps listed so what have you tried and found out already by opening the helpfile?

Jos

Thank you for your reply. I have the following code :

$sData = ClipGet() ; Display the data returned by ClipGet.
$aArray = Stringsplit($sData,"")
For $i = 1 To $aArray[0] ; Loop through the array returned by StringSplit to display the individual values.
        Send($aArray[$i])
     Next

 

Link to comment
Share on other sites

3 minutes ago, Jos said:

That looks like a good start. So what is the issue?

Jos

Thank you Jos, my issue is after I run the code, the word immediately appear in the coding window. Is it possible to assign a hot key to delay and make those letter appeared in my intended program ?

Link to comment
Share on other sites

  • Developers

How long do you want between 2 characters? When this is a fix pause you simply add a Sleep(xxxx) after the Send() command. xxxx is time to pause in miliseconds.

Jos

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

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...