Re: capturing windows clipboard && sorry!

From: Date: Sun, 12 May 2002 04:02:22 +0000
Subject: Re: capturing windows clipboard && sorry!
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-13714@lists.php.net to get a copy of this message
Hi, unfortunately I dont have a browser to provide javascript for me, the app is PHP-GTK && php shell scripts only. I almost have a solution in that I have been playing with getclip.exe which is part of cygwin, I can at this point run clipget via popen() and echo the clipboard, but so far only to stdout ... which I have tried to read via fopen('php:stdout','r') with no joy, also trying to capture the output using output buffering is not working I assume for the same reason as the clipget.exe is running as a seperate process and does not appear to have an option of redirecting output to file. I am getting a bit worried now as this is an essential reqirement of my app ;) So I am looking now at the w32api , I have got the sample at php.net running in that I can get a windows alert or confirm etc box via the w32api & have found some info on VB methods of grabbing the clipboard, translating this to PHP has got me totally stumped so far though - does any one know of any resources that could point me in the right direction? Note of warning: this is what happens when you flippently say `yeah, PHP can do that` :) "Eduards Cauna" <cauna@parks.lv> wrote in message news:5.1.0.14.0.20020511121414.041aa150@pop.parks.lv... > > > > >My Q is how would (can I) capture the contents of the windows clipboard? > > > >I have an app running on the client computer, they copy an image to the > > > >clipboard.. - canI get it ? > > Think about JavaScript. >

« previous php.windows (#13714) next »