|
|
|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Press Control+C (I believe this works on 2000/XP and later)
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
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.
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: May 2016
Posts: 19
|
I work with NSIS 2.51
|
|
|
|
|
|
#5 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
You don't have to select anything, just press Control+C, this is a standard Window feature supported by MessageBox.
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#6 |
|
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. |
|
|
|
|
|
#7 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
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 |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: May 2016
Posts: 19
|
Ok,
Thank you Anders for helping me. |
|
|
|
![]() |
|
|||||||
| Tags |
| messagebox |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|