Jump to content

Help with paste after a press of hotkey


Recommended Posts

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!

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

Link to comment
Share on other sites

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
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...