Sign in to follow this  
Followers 0
strawman2

Help with paste after a press of hotkey

8 posts in this topic

I fill out the same form hour after hour at work to our internal webpage, using data from excel/word/outlook. I have been able to jump to first form field (this is in firefox) when I press ALT+D, which is easier than tab as I can just slide my thumb to the left, what I want AutoIT to do now is to paste or 'ctrl+v' either way, I will already have the data on my clipboard, hit ALT+D, and then it pastes.

If someone could guide me where to read on how to do this or assist me I would greatly appreciate it.

Basically, I press ALT+D, jumps to first form field (have this part done), AutoIT pastes whats on clipboard (usually 10-20 characters of info).

Thanks!

Share this post


Link to post
Share on other sites



See ClipGet in the Helpfile.


- 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

Not sure how to set _ispressed,

I am a complete noob, but can I do 'OnEvent("!d","Send("^v")' ?

Thanks

I don't need getclip because I will manually put the item to paste on the clipboard with CTRL+C, I need it to send (CTRL+V) Send("^v") after I press Alt+D or "!d"

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

If the information is already on the Clipboard, then use Send("^v").

As for the shortcut, you can just make functions then trigger them by registering hotkeys via HotKeySet.

You don't really need to use _IsPressed if the functionality that you want is just a plain old keyboard shorcut.

Edited by omikron48

Share this post


Link to post
Share on other sites

but can I do 'OnEvent("!d","Send("^v")' ?

Put the Send line in the function that the ALT-d key combo hotkeys.

- 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

Ya, that's what I meant, C45Y. I just read my earlier post.. :graduated:


- 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

Ya, that's what I meant, C45Y. I just read my earlier post.. :graduated:

haha yes thought it could use some clarification

glad i can help.

now just hope strawman2 gets it all working :(


http://twentylinesofcode.blogspot.comLittle apps n crap. can be fun

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  
Followers 0