Jump to content
Sign in to follow this  
Borje

Sending a key problem

Recommended Posts

Borje

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

Share this post


Link to post
Share on other sites
goldenix

Send("^c")

Search autoit help file for send or Send Key List

Edited 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]

Share this post


Link to post
Share on other sites
Andreik

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

Share this post


Link to post
Share on other sites
Borje

Thank you goldenix I would try this..

Share this post


Link to post
Share on other sites
tedhill3470

If that doesn't work for you, and you are trying to emulate a Windows "Copy" - (CONTROL-C) you might want to try:

CODE
Send("^+{C}")

Function Send in autoit help; this syntax is tricky

Share this post


Link to post
Share on other sites
martin

If that doesn't work for you, and you are trying to emulate a Windows "Copy" - (CONTROL-C) you might want to try:

CODE
Send("^+{C}")

Function Send in autoit help; this syntax is tricky

You 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 work

Send("^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.

Share this post


Link to post
Share on other sites
tedhill3470

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×