How Can I put a text from a variable into the windows clipboard...I need that, but I cant find something here
and I tried using windows function open, clear and setclipboarddata but it fails...
Thanks you so much
Write into windows clipboard
-
mikKummerfeld
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Write into windows clipboard
Kind regards
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
FrancescoT
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Write into windows clipboard
Dear Heiko,
you should write a custom dll for that ... honestly, it is not clear to me if you want to set the clipboard during your setup package execution.
Anyway, a sample code can be found from MSDN ... as for example;
http://msdn.microsoft.com/en-us/library ... _Clipboard
Regards
you should write a custom dll for that ... honestly, it is not clear to me if you want to set the clipboard during your setup package execution.
Anyway, a sample code can be found from MSDN ... as for example;
http://msdn.microsoft.com/en-us/library ... _Clipboard
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
mikKummerfeld
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Re: Write into windows clipboard
i found a workaround..
clear clipboard with cmd /c "echo off | clip"
- then copy my string into textfile
- then use clip.exe to put text from textfile into clipbord
- remove textfile
works
clear clipboard with cmd /c "echo off | clip"
- then copy my string into textfile
- then use clip.exe to put text from textfile into clipbord
- remove textfile
works
Kind regards
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
FrancescoT
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Write into windows clipboard
Happy you solved
!
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

