Skip to content
⌘ NSIS Forum Archive

How user can copy text from MessageBox

8 posts

butsay#

How user can copy text from MessageBox

Hi guys,
I have a stop point in my project.
I have a MessageBox with the serial number which I wanted to let user to copy and paste in the web browser window.
So far I couldn't find how I can select/highlight the text from the MessageBox or to make it selectable .
Please advise me.
Thank you.
butsay#
Sorry, but it's not possible. I can't even select the text from the MessageBox. Cntrl-C didn't work because nothing was selected.
Anders#
Originally Posted by butsay View Post
Sorry, but it's not possible. I can't even select the text from the MessageBox. Cntrl-C didn't work because nothing was selected.
You don't have to select anything, just press Control+C, this is a standard Window feature supported by MessageBox.
butsay#
Yes, it works. But it will copy everything:
---------------------------Avatar Setup---------------------------Copy your GUID and have it ready for Avatar activation:b4801507-313a-4f7a-98de-0b65a20f9150---------------------------OK---------------------------
I need to copy just a GUID.
So the key combination Cntrl - C doesn't solve the problem.
Anders#
You can create your own MessageBox style dialog with http://nsis.sourceforge.net/DlgHost_plug-in but I would not recommend that, just accept this limitation or display the GUID on a custom page instead of a MessageBox...