Forum Discussion

Former Member's avatar
Former Member
4 years ago

Type in Window - How to implement

I use this feature a lot to paste into a VM where copy/paste is disabled. 1Password's implementation works really well and was wondering if there is any insight on how to replicate this as a small utility to paste text.

For some background I have tried with AutoHotKey but found it would not handle special characters and newlines correctly.


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided

1 Reply

  • 1P_Mitch's avatar
    1P_Mitch
    Icon for 1Password Team rank1Password Team

    Hey @ejt, thanks for this question. I appreciate the interest in the auto-type feature and how we implemented it. I don't know of any utilities to recommend, but if you are a developer, I can point you in the direction of the https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendinput Win32 API. You could use that function to simulate any kind of keypress, and it forms the basis of auto-type and drag-and-type in our Windows app. Good luck in your exploration!