Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How user can copy text from MessageBox (http://forums.winamp.com/showthread.php?t=399031)

butsay 6th December 2016 19:42

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.

Anders 6th December 2016 21:21

Press Control+C (I believe this works on 2000/XP and later)

butsay 6th December 2016 22:12

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.

butsay 6th December 2016 22:14

I work with NSIS 2.51

Anders 6th December 2016 22:23

Quote:

Originally Posted by butsay (Post 3074867)
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 7th December 2016 13:42

1 Attachment(s)
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 7th December 2016 14:20

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...

butsay 7th December 2016 14:36

Ok,
Thank you Anders for helping me.


All times are GMT. The time now is 17:17.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.