RE: How to copy from windows clipboard using PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Would anyone know how to copy an image/screen shot from the Windows's
> CLIPBOARD?  I am trying to capture the clipboard content (image) populated
> by the use of the  PrintScreen button on the standard keyboard and storing
> it in a MySQL database table field along with a key field.  I then would
> be
> interested in fetching it later to display and/or print upon users'
> request.
> 
> 
> 
> Has anyone developed such capability before?

Hi Tony,

I'm not aware of PHP having any clipboard functionality, which makes sense
when you think about it, since it's ordinarily run on the server, rather
than on the client, and while it does have CLI capabilities, these don't
appear to have been developed yet to cover specific desktop functions /
capabilities such as manipulating the clipboard.

I know from experience that Python (and perhaps Perl?) is able to access the
clipboard, though, in case you want to investigate these.

For myself, I use a freeware application called GrabCaptureScreen
(http://www.grabcapturescreen.com/) to perform screen captures and save to
filenames etc, and from there it should be a relatively simple process to
store the images in your db table. Having said which, I would look at the
possibility of simply storing the path/filename of the image in your table,
with the images physically stored as files on your harddrive, rather than as
binary objects in your db.

Hope this helps, even if just a little.

Much warmth,

Murray
---
"Lost in thought..."
http://www.planetthoughtful.org

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux