Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using Print Screen to attach files?

Status
Not open for further replies.

jlindahl

Programmer
Sep 23, 2003
46
US
is there a way to allow a user to press the print screen key to get a file uploaded? i'm thinking, they must first press the print scrn key, then click on a button in the form to paste the filepath to be uploaded from the clipboard. my trouble is, i don't know the path to stored clipboard items. is there one?
 
I don't believe there is any way to make this happen short of writing a dll and downloading it to each client. Pretty much, they would have to paste the screen capture into a file, save it and then upload it using something like the Dundas free upload control.

Michael
 
yeah, i figured that, but i was still hopin' that someone out there could amuse me with a bit of hope.
what about the file path of the clipboard? is there a general location that the printscreen is temporarily held until it's acted upon?
 
A Google Search Result on "printscreen memory location"

This guy has a solution... I don't have the time to mull over his code... but sounds like a place to start. I'm not sure what programming language it is... If you find out, I'd be interested

Earnie Eng
 
well i get it to work with window.clipboardData.getData("text"); but this only works on text and the user has to use ctrl+c. I have found some search results, but they are in other languages. documents say that you can use "image" or even "file" in place of "text", but i must be doing something wrong because that is not working.
Code:
<script>
function copyit()
{
 document.inputForm.pasted.value = window.clipboardData.getData(&quot;text&quot;);
}
</script>
[code]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top