Write into windows clipboard

Got a problem you cannot solve? Try here.
Post Reply
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Write into windows clipboard

Post by mikKummerfeld »

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
Kind regards

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

Post by FrancescoT »

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
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
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: Write into windows clipboard

Post by mikKummerfeld »

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
Kind regards

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

Post by FrancescoT »

Happy you solved :D !
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
Post Reply