Sign in to follow this  
Followers 0
anyways

Wats the function for copy/paste?

11 posts in this topic

i wanna select and copy something and i wanna paste that same thing somewhere else, what i am suppose to do?

copy("Adfbadfbadfbad")

paste("Adfbadfbadfbad", "in notepad")

how do u translate this in autoit language

Share this post


Link to post
Share on other sites



i wanna select and copy something and i wanna paste that same thing somewhere else, what i am suppose to do?

copy("Adfbadfbadfbad")

paste("Adfbadfbadfbad", "in notepad")

how do u translate this in autoit language

Help File -> Tutorials -> Simple Notepad Automation

Help File -> Function Reference -> Environment Management

ClipGet ( )

ClipPut( )

Share this post


Link to post
Share on other sites

already read this but i wanna know how to paste the clipboard INTO A NOTEPAD, not into a msgbox!

Share this post


Link to post
Share on other sites

already read this but i wanna know how to paste the clipboard INTO A NOTEPAD, not into a msgbox!

God damn, look in the help file!

FileWrite("file.txt", ClipGet())

Share this post


Link to post
Share on other sites

Run("notepad")
WinWaitActive("Untitled - Notepad")
ClipPut("test data to be pasted")
Send("^v")


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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

WinActivate("Untitled - Notepad")

Send("^v")

Edit: I wasn't able to type fast enough.

Edited by Mr Icekirby

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

ur a life savor

edit: ill take the FileWrite("file.txt", ClipGet())

Edited by anyways

Share this post


Link to post
Share on other sites

ur a life savor

No, we're doing your job for you because you're too god damn lazy to look in the help file and LEARN.

Share this post


Link to post
Share on other sites

The response I gave didn't write to a message box. Read the help file first.

Share this post


Link to post
Share on other sites

ok why dont my script work??

Opt("WinTitleMatchMode", 2)
$notepad = WinGetText("noms.txt - Notepad")
$lines = StringSplit($notepad,@crlf,1)
$randomline = Random(1, $lines[0], 1)
Clipput($randomline)
FileWrite("file.txt - Notepad", ClipGet())

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

- enough - click

... and don't start a new thread again with this same subject ....

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0