Action script to copy some field to Android clipboard

183 views
Skip to first unread message

233 xsk

unread,
Sep 19, 2022, 8:06:44 AM9/19/22
to mementodatabase
Hi!

Is there possble use script to copy field's value to clipboard?
I googled it,but can't find any solution

where can I find the solution?Thanks

Craig Hunter

unread,
Sep 19, 2022, 8:50:06 AM9/19/22
to 233 xsk, mementodatabase
Did you try any of these? What happens?

https://www.google.com/search?q=javascript+clipboard

Beth Dixon

unread,
Sep 19, 2022, 9:35:49 AM9/19/22
to Craig Hunter, 233 xsk, mementodatabase
Hi 233 xsk, I am confused.  Why not highlight, copy?  Then paste to wherever?

Might help if you explained to forum what you wish to do with the copied text in the clipboard.

- Beth

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mementodatabase/39B72838-DED5-448F-BCE8-28AC0E16D62D%40gmail.com.

Bill Crews

unread,
Sep 19, 2022, 10:37:56 AM9/19/22
to 233 xsk, mementodatabase
Explore using the System object (see https://wiki.mementodatabase.com/index.php?title=Memento_JavaScript_Library#Interaction_with_the_system).

I've never done it, so I can only aim you at information, but the System object in Memento is intended to enable the interaction of a script with the underlying OS to accomplish whatever can be done, and I would imagine use of the clipboard might be one of those things.

The problem with querying the Web to find out how to do this is that most JavaScript (JS) articles assume you are programming a Web site, so they use DOM (Web) objects like Document or Navigator, which don't exist in Memento. You might find something there, but I'd be surprised, because there's a job to get done -- penetrating the OS to do things -- and they'll likely use the Web (DOM or Document Object Model) objects to do it.

Read at the link I gave up top -- probably using an Intent object in the process, but I'm guessing -- then I'm guessing (again) that you'll need to do something different for each of the platforms you want to support, so query with search keys like "Android clipboard API". Substitute if you want Windows, macOS, Linux, or iOS for Android. Hopefully, I'm wrong, and there's a standard across all platforms for accessing the clipboard.

Good luck, and it would be really great if you could report back with your findings, some links, or even with your solution.

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.

233 xsk

unread,
Oct 11, 2022, 10:58:09 PM10/11/22
to mementodatabase
Hi,guys

I find solutions !
Need 3rd application like "share to clipboard".
And use system,intent send to that app.
I'm sorry,I don't good at English,I hope you can understand my poor English.
Thank you all for your reply.
2022年9月19日月曜日 22:37:56 UTC+8 bill....@gmail.com:

Bill Crews

unread,
Oct 12, 2022, 2:02:21 AM10/12/22
to 233 xsk, mementodatabase
Thank you for enlightening us! I'm glad you found a solution. I guess any "share to clipboard" will do, eh? Could you share any sample code?


Reply all
Reply to author
Forward
0 new messages