Jump to content
Sign in to follow this  
anyways

Wats the function for copy/paste?

Recommended Posts

anyways

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
weaponx

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
anyways

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
Shyke

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
herewasplato

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
Richard Robertson

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
anyways

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
Shyke

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
weaponx

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
anyways

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
Guest
This topic is now closed to further replies.
Sign in to follow this  

×