1
votes

I am working on project where I want to paste data from clipboard to last focused webpage's text control(like text box for username or password). The web page will be opened in Chrome\FF\Safari Web Browser.

This all task will be done on click of "Paste" button in my application.

I have handle of last used application including web Browser (Other than my application). So can any one help me on this?

Sorry for bad English.

if any more information expected please comment.

Thank you in advance.

1

1 Answers

2
votes

You first have to "activate" the target window, in order to really have a focused text box. See that answer in order to do that.

Then, you'll have to fake a "Paste" keyboard command using SendInput.