I am using Adobe Acrobat Pro DC and I have to write a script that paste a string from the clipboard to a text field when the user clicks on a specific button. The user uses a tablet with Acrobat Reader for Android. I already wrote a script that convert the string into a value. The string in the clipboard is generated by an another Android app that listen to the RS232 communication.
Go find an old coder and you will find the answer. I mean a person, not an app. That person would have written all of their code - HTML, Javascrpt, etc. - all on Notepad.