miketh2005 Posted May 5, 2010 Share Posted May 5, 2010 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. Link to comment Share on other sites More sharing options...
JohnOne Posted May 5, 2010 Share Posted May 5, 2010 (edited) 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 May 5, 2010 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
gononono64 Posted May 5, 2010 Share Posted May 5, 2010 replace this: Send("^C") with this : Send ("{CTRLDOWN}") Send ("c") Send("{CTRLUP}") Link to comment Share on other sites More sharing options...
miketh2005 Posted May 5, 2010 Author Share Posted May 5, 2010 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??? Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 5, 2010 Share Posted May 5, 2010 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. Link to comment Share on other sites More sharing options...
JohnOne Posted May 5, 2010 Share Posted May 5, 2010 You're sending an upper-case 'c'. Try this: Send("^c").Well spotted. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted May 5, 2010 Share Posted May 5, 2010 (edited) 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 May 5, 2010 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
miketh2005 Posted May 6, 2010 Author Share Posted May 6, 2010 Thanks alot guys! Very well spotted! saves some lines! Thanks. 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