Old 6th December 2016, 19:42   #1
butsay
Junior Member
 
Join Date: May 2016
Posts: 19
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 is offline   Reply With Quote
Old 6th December 2016, 21:21   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,316
Press Control+C (I believe this works on 2000/XP and later)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 6th December 2016, 22:12   #3
butsay
Junior Member
 
Join Date: May 2016
Posts: 19
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 is offline   Reply With Quote
Old 6th December 2016, 22:14   #4
butsay
Junior Member
 
Join Date: May 2016
Posts: 19
I work with NSIS 2.51
butsay is offline   Reply With Quote
Old 6th December 2016, 22:23   #5
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,316
Quote:
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.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 7th December 2016, 13:42   #6
butsay
Junior Member
 
Join Date: May 2016
Posts: 19
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.
Attached Thumbnails
Click image for larger version

Name:	avatar setup.png
Views:	91
Size:	5.2 KB
ID:	52876  
butsay is offline   Reply With Quote
Old 7th December 2016, 14:20   #7
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,316
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...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 7th December 2016, 14:36   #8
butsay
Junior Member
 
Join Date: May 2016
Posts: 19
Ok,
Thank you Anders for helping me.
butsay is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
messagebox

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump