Borje Posted September 6, 2008 Share Posted September 6, 2008 Is there anybody out there that could help me with a syntax to send a ( ctrl c ) I have look in the help but are not sure... Thanks Link to comment Share on other sites More sharing options...
goldenix Posted September 6, 2008 Share Posted September 6, 2008 (edited) Send("^c")Search autoit help file for send or Send Key List Edited September 6, 2008 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
Andreik Posted September 6, 2008 Share Posted September 6, 2008 Is there anybody out there that could help me with a syntax to send a ( ctrl c ) I have look in the help but are not sure... Thanks Send("^c") When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Borje Posted September 6, 2008 Author Share Posted September 6, 2008 Thank you goldenix I would try this.. Link to comment Share on other sites More sharing options...
tedhill3470 Posted September 7, 2008 Share Posted September 7, 2008 If that doesn't work for you, and you are trying to emulate a Windows "Copy" - (CONTROL-C) you might want to try: CODESend("^+{C}") Function Send in autoit help; this syntax is tricky Link to comment Share on other sites More sharing options...
martin Posted September 7, 2008 Share Posted September 7, 2008 If that doesn't work for you, and you are trying to emulate a Windows "Copy" - (CONTROL-C) you might want to try:CODESend("^+{C}")Function Send in autoit help; this syntax is trickyYou might not want to try that because instead of copying the highlighted text it will overwrite it. It certainly is not the same as Send("^c").I assume you didn't try that before you posted tedhill3470, so I think you should. Highlight some text and then run Send("^+{C}") and see what happens.The + sign in Send means shift as the help which you refer to will tell you. I assume {C} is something you made up.To copy both of these will workSend("^c")Send("^{INS}") Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
tedhill3470 Posted September 8, 2008 Share Posted September 8, 2008 Since Borje didn't specifically say he was highlighting text and then sending "a ( ctrl c )"(he just asked how to send a ctrl c); but your interpretation is perfectly logical, he just didn't say it;and that just yesterday on my first every script I had to figure out how to paste something into another application,and if there is text in the clipboard Send ("^+{V}") actually works to paste text, (I assume you didn't try that <g>) I assumed that ("^+{C}") would work syntax being consistent;Way too many assumptions with my lack of experience in this language, and I do apologize to Borje and the forum, but certainly the intent was to help not to mislead. 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