Jump to content
Sign in to follow this  
miketh2005

Send command help.

Recommended Posts

miketh2005

MouseClickDrag("left", 928, 686, 655, 686) ;Highlight Email Address
        Send("^C") ;Copy Email address

So I have that code, but it is not copying the highlighted part. Why not? I guess it's a problem with the Send parameters... I thought ^ was the code for CTRL? That's what it says in the help doc.

Share this post


Link to post
Share on other sites
JohnOne

Its worked for me before.

Could have something do do with where you are getting it from.

But anyhow, you should do some checking before trying to do whatever with the email, such as checking the clipboard contents actually has an email in it

ie.. psuedo

ClipPut("Blah")

Mouseclic.....

Send("........

$var = ClipGet()

If Not $var == "Blah" Then

;contents have changed so you have your email

Else

Try again

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
gononono64

replace this:

Send("^C")

with this :

Send ("{CTRLDOWN}")
Send ("c")
Send("{CTRLUP}")

Share this post


Link to post
Share on other sites
miketh2005

i tried using that line of code to copy something in scite itself and it turned the text into:

or ETX.

So its doing Ctrl + Shift + C

instead of just Ctrl + C...

why is it doing shift???

Share this post


Link to post
Share on other sites
somdcomputerguy

You're sending an upper-case 'c'. Try this: Send("^c").


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
somdcomputerguy

Well spotted.

Actually it wasn't until the OP mentioned the shift.. But thanks. I hope that solves the issue.

Edit: Looking back, gononono64 suggested a lower case 'c' also..

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
miketh2005

Thanks alot guys! Very well spotted! saves some lines! Thanks.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.