Jump to content

Copy And Paste


Recommended Posts

Hi, I am trying to build a program that will copy and paste. I want it to use SHIFT+arrowkey to highlight. Basically SHIFT+downarrow to highlight he whole document, then CTRL+X. Then have it ALT+TAB to the next program and CTRL+V to paste. Once I get this basic concept down I will alter it to suite my needs more, but I am really stuck on getting to this point.

Thank you

Link to comment
Share on other sites

Okay great, CTRL+A would work nice, heh I never knew of that :/. How do I make it so that AutoIt will do that command? would it be Send ('CTRL+A');? I'm sorry but I am trying to learn alot of this now, and not sure if I'm doing it right.

Link to comment
Share on other sites

Ok, this should start you off on the right foot.

I put it in a function to let you learn these wonderful time savers.

hotkeyset("{pause}","dosomething"); pause key starts it like a hot key
While 1
    sleep(10)
Wend
    
Func DoSomething()
    send("^a") ; ^ is control so ^a is ctrl+a
    send("^x")
    send("!{tab}"); ! is ALT, so !{tab} is Alt+Tab key
    send("^v")
EndFunc

or if you really wanted to use down arrow select

hotkeyset("{pause}","dosomething")
While 1
    sleep(10)
Wend
    
Func DoSomething()
    send("{shiftDOWN}")
Send("{down 50}")
    send("{shiftUP}")
    send("^x")
    send("!{tab}")
    send("^v")
exit; if you want it to end after one test, if not, remove this line
EndFunc
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...