Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: Date: Tue, 1 Aug 2000 23:32:44 +0100 To: cygwin AT sourceware DOT cygnus DOT com From: Alexander Anderson Subject: Clipboard from Cygwin? MIME-Version: 1.0 X-Mailer: Turnpike Integrated Version 4.02 U Dear Cygwin list, A while back Oliver Nittka sent me the C sourcecode of a Cygwin unix command to grab the Windows clipboard. He suggested I compile it and try it out. I would very much prefer not get involved in the headaches of setting up the ability to actually _compile_ stuff under Cygwin (I just want the power of the Unix tools on Windows, as a command line user). I have not been able to get a reply from Nittka recently, he may be on holiday. Could someone instead suggest where I can download this (or a similar) command, pre-compiled? Also, how does one use Nittka's 'probe'? Would it be for example, $ probe > clipboard.txt ? With kind regards, Sandy P.S. The source he originally sent: ------------------------------------------------------------- probe.c -- #include #include int main() { HGLOBAL hglb; LPSTR lpstr; OpenClipboard(0); hglb = GetClipboardData(CF_TEXT); lpstr = GlobalLock(hglb); printf("%s",lpstr); GlobalUnlock(hglb); CloseClipboard(); return(0); } -- eof ------------------------------------------------------ probe.c -- -- Alexander Anderson mailto : lists at almide period demon period co dot uk bud-nav: http://www.explosive-alma-services-bolts.co.uk/ pgp-sig: 1B5A DF3D A3D9 B932 39EB 3F1B 981F 4110 27E1 64A4 -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com