Guillermo Posted September 12, 2005 Posted September 12, 2005 I'd like to know if it's possible to make AutoIt send keys in block - that is, not by typing them one by one. I've tried using ClipPut() / ClipGet() but I'm at my workplace (WinXPPro), and it doesn't work. I think it has to do with my account rights, because generally it does the trick on my home PC (WinXPPro). Thanks in advance, Guillermo
BigDod Posted September 12, 2005 Posted September 12, 2005 Guillermo said: I'd like to know if it's possible to make AutoIt send keys in block - that is, not by typing them one by one.I've tried using ClipPut() / ClipGet() but I'm at my workplace (WinXPPro), and it doesn't work. I think it has to do with my account rights, because generally it does the trick on my home PC (WinXPPro).Thanks in advance,Guillermo <{POST_SNAPBACK}>Read up on send in help filesend("abcdefgh") Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
LxP Posted September 12, 2005 Posted September 12, 2005 Welcome to the forums!Using ClipPut() will only place the desired information onto the clipboard -- it's your task to then paste that information into your desired program. Generally this command will do precisely that:send("^v")Hope that answers your question.
Guillermo Posted September 12, 2005 Author Posted September 12, 2005 Alright, I made a fool of myself with that question. I thought ClipGet() was intended to do exactly that, but its behaviour is different to Send("^v"). So I understand there's no other way of sending "blocks of characters", right? Thx, Guillermo
herewasplato Posted September 12, 2005 Posted September 12, 2005 "blocks of characters" *can* be sent via the send("^v") code that LxP gave you... Let's say that the Windows clipboard contains this text: This is just some text. After running this line of code: $var = ClipGet() the variable named "var" will now contain the text This is just some text. After running this line of code: ClipPut("This is just some DIFFERENT text.") The Windows clipboard will contain this text: This is just some DIFFERENT text. Running this line of code: Send ("^v") AutoIt will send This is just some DIFFERENT text. to whatever application window is in focus at the time. Also, take a look in the help file at SendKeyDelay [size="1"][font="Arial"].[u].[/u][/font][/size]
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