anyways Posted June 30, 2007 Share Posted June 30, 2007 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 Link to comment Share on other sites More sharing options...
weaponx Posted June 30, 2007 Share Posted June 30, 2007 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 languageHelp File -> Tutorials -> Simple Notepad AutomationHelp File -> Function Reference -> Environment ManagementClipGet ( )ClipPut( ) Link to comment Share on other sites More sharing options...
anyways Posted June 30, 2007 Author Share Posted June 30, 2007 already read this but i wanna know how to paste the clipboard INTO A NOTEPAD, not into a msgbox! Link to comment Share on other sites More sharing options...
Shyke Posted June 30, 2007 Share Posted June 30, 2007 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()) Link to comment Share on other sites More sharing options...
herewasplato Posted June 30, 2007 Share Posted June 30, 2007 Run("notepad") WinWaitActive("Untitled - Notepad") ClipPut("test data to be pasted") Send("^v") [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 30, 2007 Share Posted June 30, 2007 (edited) WinActivate("Untitled - Notepad")Send("^v")Edit: I wasn't able to type fast enough. Edited June 30, 2007 by Mr Icekirby Link to comment Share on other sites More sharing options...
anyways Posted June 30, 2007 Author Share Posted June 30, 2007 (edited) ur a life savor edit: ill take the FileWrite("file.txt", ClipGet()) Edited June 30, 2007 by anyways Link to comment Share on other sites More sharing options...
Shyke Posted June 30, 2007 Share Posted June 30, 2007 ur a life savorNo, we're doing your job for you because you're too god damn lazy to look in the help file and LEARN. Link to comment Share on other sites More sharing options...
weaponx Posted June 30, 2007 Share Posted June 30, 2007 The response I gave didn't write to a message box. Read the help file first. Link to comment Share on other sites More sharing options...
anyways Posted June 30, 2007 Author Share Posted June 30, 2007 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()) Link to comment Share on other sites More sharing options...
Developers Jos Posted June 30, 2007 Developers Share Posted June 30, 2007 (edited) - enough - click ... and don't start a new thread again with this same subject .... Edited June 30, 2007 by JdeB 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 More sharing options...
Recommended Posts