Kash Posted May 5, 2009 Share Posted May 5, 2009 Hello, Can someone tell me how to send copy and paste command to a AutoIt program? e.g. send("{ctrl}{V} ")? Thank you... Link to comment Share on other sites More sharing options...
BrettF Posted May 5, 2009 Share Posted May 5, 2009 Copy and paste what? What do you want to do? Got any code? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Kash Posted May 5, 2009 Author Share Posted May 5, 2009 I am actually simulating screen print button on key board. I am trying to to screen print and then paste it to a word documenet. So normally as a human being we press print scrreen and then go to work document and press control V to paste that screen print in to document $oWordApp = _WordCreate ( @ScriptDir & @UserName & "_" & $str_DateTime & ".doc","",0,0) ;$oDoc = _WordDocGetCollection ($oWordApp, 0) Sleep(3000) Send("{PRINTSCREEN}") Send("{ctrl V}") Link to comment Share on other sites More sharing options...
BrettF Posted May 5, 2009 Share Posted May 5, 2009 HotkeySet/IsPressed _ScreenCapture Word UDFS (which I see you've already found) Have a search for inserting an image into word... Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Kash Posted May 5, 2009 Author Share Posted May 5, 2009 So does that mean there is no direct way of simulating key <<ctrl>><<v>>? Link to comment Share on other sites More sharing options...
ProgAndy Posted May 5, 2009 Share Posted May 5, 2009 "^c" and "^v" should do the trick *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
pauleffect Posted January 28, 2014 Share Posted January 28, 2014 (edited) actually, no. ^c won't do the trick. for example, in photoshop, if you try it on a layer(a tiny slice), it returns, upon paste, a copy of a "flattened image" (the whole canvas). Will paste solution here for further googlers (as myself) even though this is dead. EDIT: Please be mindful of the clearly stated fact that CTRL + c <> CTRL + C . So, don't be idiots (like me) and use uppercase... :headbang: Edited January 28, 2014 by pauleffect Link to comment Share on other sites More sharing options...
JuanFelipe Posted May 24, 2014 Share Posted May 24, 2014 Encontre la solucion, va y copia archivos de Excel y los pega en el espacio que digo... I found the solution, and will copy files from Excel and paste them in the space I want ... Send("{CTRLDOWN}c{CTRLUP}") Send("{CTRLDOWN}v{CTRLUP}") megaboyvn, SkysLastChance and SorryButImaNewbie 3 Link to comment Share on other sites More sharing options...
cls_1231 Posted August 10, 2017 Share Posted August 10, 2017 (edited) El 5/5/2009 a las 0:56 PM, ProgAndy dijo: "^ C" y "^" hacer el truco Gracias Edited August 10, 2017 by cls_1231 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now