Simulating copy and paste on applications that don’t allow it

copy/pastekeyboard

Context

Some applications currently don't seem to allow copy and pasting.

For example I have an application that asks me to log in every time and it doesn't allow me to paste anything so I'm forced to type a very long and complicated password every time.

I don't think it's something they intentionally restrict but rather a limitation of the libraries they are using (maybe xQuartz?).

What I've tried

I've tried cmd+C and cmd+V in the input area. I've also tried to right-click and click on "Paste" (which is highlighted) but that also yields nothing.

Question

In any case, is there any way to simulate pasting on Mac OS X? Maybe by sending multiple key presses instead?

Best Answer

Turns out the problem was that the copied password (and the one with which I thought I registered) was longer than 20 characters. The input field on the application doesn't allow more than 20 characters long password and the website silently cuts them to 20.

By copying the first 20 characters of the password I was able to paste it in.