Mesen - Emulator

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Alyosha_TAS
Posts: 200
Joined: Wed Jun 15, 2016 11:49 am

Re: Mesen - Emulator

Post by Alyosha_TAS »

Sour wrote: Sun Jun 08, 2025 7:51 am Took a few days, but managed to get it down to 0.
GG! Glad my tests were helpful.
yeerk16
Posts: 4
Joined: Sat May 03, 2025 9:31 pm

Re: Mesen - Emulator

Post by yeerk16 »

Sour wrote: Sun Jun 08, 2025 7:51 am
yeerk16 wrote: Sat Jun 07, 2025 6:43 pm Could you add a new Lua API function:
emu.copyToClipboard(text)
This is probably not something I can easily do. I might be able to add a UI option to copy new logs to the clipboard, but that might not be very reliable due to the way the logs are updated currently. I'll add this as an idea on the todo list, but I can't say when I'll find the time to look into it.
Hi Sour,

Ahh, what I was hoping was that emu.copyToClipboard(text) could be used to copy the given text to the clipboard. (I have a screen reader addon here that monitors the clipboard and automatically reads anything copied to the clipboard. So e.g. in Punchout, when I attack or get hit, I could copy damage values onto the clipboard from Mesen's Lua, and I would then hear those damage values immediately read to me.)

If there was a UI option "automatically copy most recent log string to clipboard", that would work too (I hadn't thought of that) but I guess I'd be worried about cluttering an option in there that not many people would use (compared to a new Lua API function that people wouldn't see unless they really wanted it).

Totally understand this cannot be prioritized... thank you for thinking through it!
Post Reply