Paste clipboard screenshot capture into applet

hi,
im trying to find a way to paste a clipboard screenshot into a java applet. these are the steps:
1. user presses alt+prtscn
2. user copies screenshot capture into clipboard (control + c)
3. WHAT I NEED TO DO: take screenshot capture and paste it into the applet by pressing control + v.
im not sure how i make a placeholder for the image, if someone could explain that. also, after i put the image in the applet i would like to be able to save it in jpg/gif format.
if anyone can help me out, please do. i can be emailed/reached at "i aim robin" on aim or [email protected] to discuss.
thanks for your time.

I'm not sure if an unsigned applet can do this. To get the system clipboard containing the image, call Toolkit.getSystemClipboard(), but I'm not sure if applets are restricted from accessing it. If you can get it, you'll have to parse the bytes to create the image (unless you can find a third-party class to do it). In a Windows environment, the screenshot images are like 32-bit bitmaps with a shortened file header. Also, unsigned applets cannot save files, so they cannot create the jpg and gif files. I hope this helps at least some.
-JBoeing

Similar Messages

  • Anyone plz tell me how to capture an applet to clipboard..

    I'd like to capture my applet, that I've built before, to clipboard. Otherwise, I'd like to define its boundary for capturing also. The problem is the Java version that I use is 1.1, and I don't know how to capture it. If there isn't any method to support this, what Java version I should use and how to do that. Thank you for your advise.

    Well, I couldn't use printscreen because I've used that button for some function already. I have an idea to draw a small picture as a button in that applet on account of capturing my applet. When the users click on that picture, it'll capture my applet for them. But still, I don't know how to do that...

  • Pasting clipboard into numbers

    I have a script that reads a file to clipboard without opening, I want to be able to write this data to a numbers file in the same way, without opening. Is this possible??
    I successfully get the data to clipboard but come up with errors -49 on writing to file.

    Off-hand, this does not seem possible. You are copying a non-Numbers file and then, I guess, trying to append it to a Numbers document, which would result in garbage. Or maybe you are trying to paste it into a cell/table of a Numbers document but that, too, would be garbage if it would work at all like it seems you intend (actually, it simply pastes the file name into the cell).
    I am pretty sure you will have to open both applications. The first one to interpret the source file and copy the correct contents to the clipboard. The second (Numbers) to be able to paste the data where you want it to go. At best, you might be able to write a script that interprets the source data and it might be theoretically possible to edit a Numbers document directly but I would not recommend doing so if you value your document.
    Can you be more specific about what you are trying to accomplish?
    Message was edited by: Badunit

  • Problem pasting a screenshot into mail

    If I paste a screen shot into a mail with firefox 15 on windows XP using screenhunter or other software, the image appears ok when composing, but appears as
    img src="data:image/png;base64,iVBORw0KGgoAA (snip)
    when viewed.
    This occurs on both yahoo and gmail, and both chrome and IE do not exhibit the problem (they use a different header).

    Is this the right forum to report this issue? Anyone interested?

  • How do I paste a screen capture? Edit-paste or command-V do not work.

    How do I paste a screen capture? Edit-paste or command-V do not work.  Tom

    how did you take the screenshot?
    if you used a key combo like command+shift+ a number it will be saved as a file on your desktop
    you need to add control* to whatever key combination you pressed to put it on your clipboard
    *sorry for saying shift before i meant control

  • Finally.... Video captured from applet in Vista!!

    Hello!
    Hurray!! finally I can see myself smiling and waving back in browser in Vista.
    I mentioned in another thread just a day earlier that I will post a new topic if I succeed in capturing from applets in Vista, so thats what I am doing.... This thread is all about how achieved it.
    I have seen many posts mentioning problems in capturing from applets in vista. I was also one of the sufferer. And most people including me blamed that on restricted sandbox of Vista. But surprisingly it was all about classpath.
    I think I mentioned in some earlier thread that the 'Java console' shows the classpath to be *"{JREHOME}/classes"* instead of the classpath specified in CLASSPATH environment variable. You can check that by pressing 's' which *'dumps system and deployment properties'* in the Java Console. You can check the classpath by noting the value of *"java.class.path"* field which for my case was"C:\\PROGRA~1\\Java\\jre6\\classes". This turned out to be the main problem. The applet was not accessing any classes from the real CLASSPATH instead it was considering the classpath to be jrehome/classes. So, now I had enough hint what to do next. I simply created a folder 'classes' in {JREHOME} and copied the jmf registry files to that folder. By registry files I mean *'jmf.properties'* and *'jmf.properties.orig'* files in *'{JMF Install}/lib'* folder (actually i don't which among them has got some thing to do with the registry but I copied them both). So, after doing this, all my capture applets, whether signed or unsigned started running. Earlier they all were throwing *"java.lang.RuntimeException: No permission to capture from applets"* exception even after I have allowed capture from applets in JMF registry. That was perhaps not taking affect because of classpath issues. So, thats the story.... if someone faces the same problem he can use this workaround or you can say hack ;-)
    Some questions which can be asked from me would be:
    1- Did you set your CLASSPATH environment variable correctly?
    ans: Yes, infact all my jmf applications were running correctly, the problem was only with the applets.
    2- What classpath other systems (e.g. XP) mention in the Java console ?
    ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also.
    3- Is this problem really Vista specific?
    ans: Can't say... but it can be. It maybe the case that Vista does not allow access to real CLASSPATH, but this problem can easily be my system specific, it would be called a general vista problem if this happens on all Vista systems, I need volunteers for this test. captfoss, can you please test this on your system? :)
    4- Is this problem JMF specific?
    ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific.
    Drawbacks of this work around:
    1- This can be a pain for ordinary users , copying registry files from JMF/lib to JRE/classes.
    2- Whatever you change in JMF registry would not be effective to the applets. As the old registry files are to be replaced with new registry files every time JMF registry is changed for changes to take effect in applets.
    The real big question:
    How can we force Vista to look in the real CLASSPATH? this is the real question, if this can be done just by changing some settings then all this workaround is useless :) I am looking forward to the answer of this question.....
    captfoss, I would highly appreciate your comments.
    Thanks for reading this rather long post.... :)
    Thanks!

    A couple of comments here...the answer is, in fact, no, you didn't set your classpath correctly. One, you're probably using a JAR file to run your applet from (I'm not an applet programmer but I do believe that a JAR is required) which do not use the environment's classpath, they use their manifest classpath. No, the applet was not jared.
    Second, I believe that the browser itself specifies its own classpath, which you cannot modify. I believe this would be considered a security feature...Both IE7 and firefox3 fail.
    "You have little control over the CLASSPATH used by a browser for an Applet"
    [http://mindprod.com/jgloss/classpath.html]
    Ok this maybe the reason, I will go through the link....
    2- What classpath other systems (e.g. XP) mention in the Java console ?
    ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also. There isn't a "real" CLASSPATH, there is just the classpath stored as an environmental variable. It's no more or less real than the one in the browser.Thats what I thought.... but I think {JREHOME}/classes is the default class path used by the jre whether we set any CLASSPATH variable or not it would be there, something of that sort.....
    Lots of possibilities, but my best guess is that Vista doesn't let code running in the browser read environmental variables.Yes, I fully agree with this. I think I should file a bug report.
    4- Is this problem JMF specific?
    ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific. Definately not. It would apply to any code that wants to access something on the classpath. You are right... as I said I would test it, I tested by making a small library, added it to classpath, made an application and an applet. As expected, the aplication worked while the applet failed.
    Any application with a custom classpath would be affected.I don't understand what you mean here, do you mean 'Class-path' header in jar manifest?
    I like the "installation requirement" part. I'd suggest looking into that. Alternately, there may be something in the security settings to allow access to environmental variables.I will try to look into both.
    I just tried this statement in applet:
    System.out.println( System.getProperty( "java.class.path" ) );It threw this exception:
    Exception: java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read)
    I don't know what conclusion should I draw from this... this does mean applet has no right to know what the classpath is.... but this doesn't mean even jre plugin responsible for running applet does not know what the classpath is :)
    Finally, I want to say that due to some problems I could not post earlier, and I may not post for few more days. But I appreciate your comments and would appreciate more of them.
    Thanks!

  • Captivate 5 not pasting correct screenshots from Snagit

    Sometimes Captivate will paste the previous pic instead of my most recent pic from Snagit 9.
    EG: I want to paste a dog pic from Snagit to Captivate. I copy the dog pic from Snagit and paste it into CP5; however, I get the cat pic I pasted the time before into CP5 from Snagit.  Thinking I didn't copy the dog pic correctly, I went back into Snagit and recopy the dog pic and again tried to paste it--CP5 pasted the cat pic.
    I tested pasting the dog pic into MS Word and it works just fine.  I copy the dog pic from MS Word and go back into CP5 and paste...AND AGAIN...the cat pic displays.  I've cleared CP5 cache (which I thought might be the culprit) but that wasn't it.  The only way I can fix the copy/paste problem is to close Captivate entirely (not just the doc but the entire program). 
    Has this happened to anyone else?  What did you do to resolve the problem?  
    -Frustrated in St. Paul

    There have at times been issues with trying to use the Clipboard to paste images into Captivate.  You are better off saving your image from Snagit as a JPG or PNG file to a folder, and then using the Captivate INSERT > Image function to get the image into your project.

  • Removing "Paste Clipboard Image as Stamp Tool" from toolbar

    Somehow the "Paste Clipboard Image as Stamp Tool" button appeared on my Comment & Markup toolbar, and I can't remove it.  Also, when I go to Tool > Comment & Markup > Stamps > the "Paste Clipboard Image as Stamp Tool" option is always dim, as if it's already selected, but the other options such as "Dynamic" and "Sign Here" are bold, allowing you to select them by clicking on them.  I'm not trying to make the "Paste Clipboard Image as Stamp Tool" bold so I can select it, I'm just saying this to help someone figure out why I can't remove the "Paste Clipboard Image as Stamp Tool" button from my Comment & Markup toolbar.  Thank you.

    Likely that you activated the clipboard by copying something like an image from Photoshop or Illustrator and did this while Acrobat was open.  If nothing is in your clipboard the option will be dimmed, otherwise it will be colorful and allow you to paste into the PDF.

  • Footage incurs drop in brightness after capturing into FCP... Help?

    I have had this problem intermitently over the past few weeks and have only found very casual references from other users regarding it. However recently I tried to import HDV footage and the brightness dropped to about 80% of what it is when previewing in the log and capture window.
    So to explain in more detail...
    When I preview footage to capture into FCP within the Log and Capture window it is consistent with the brightness on the lcd and in the viewfinder of the camera. However after the footage is down capturing and I preview it in the canvas window the footage is about 80% of the brightness it was when capturing.
    I have tried everything in these posts; I have reinstalled. Deleted the receipts for quicktime 7.1.3 and reinstalled, tired to capture the HDV footage as DV.
    No help. This problem has now become consistent and I found no topics that directly address this. I have to import this footage and deliver it to my client asap and I am honestly at a loss.
    Any help would be greatly appreciated.
    Thanks
    PowerBook g4 Mac OS X (10.4.8)

    I want to apologize if I keep sounding like a broken record and sounding like someone who doesn’t really understand what they are talking about. I first want to layout that I completely understand, and have understood, the dangers and the incompatibility issues associated with video and a computer monitoring system. Therefore I can safely say that I am working at a fcp station that allows me to monitor my footage on a true video monitor where the color spaces and gamma match.
    I have since my last post tried several things and want to reiterate the few things I have already tried because I feel this discussion thread makes it seem as if my issues are generic newbie issues with someone who does understand the editing systems. I assure you that I do.
    That being said I have taken a few steps to find the problem. Since my last post I have tried to edit normal NTSC video and have had no trouble. My trouble is solely with hdv. I would also like to clarify, or rather restate that the image brightness qualities that are different are between the log and capture preview and the viewer and canvas windows, as well as when monitoring with my external video monitor which is a 1080i Panasonic multiformat monitor. So I want to stress that I see the image on my screen, even my computer screen, with an acceptable brightness. It is only after bringing them into fcp that the brightness drops.
    Does the low-rez proxy image issue really mean that when editing hdv on my comp that I will only be able to see the true product after outputting to a quicktime movie and viewing on my monitor using quicktime? If so, that ***** and I am importing using standard dv.
    Again though I want to thank you all for responding and trying to help me out here. It’s really been frustrating me and I appreciate the help in trying to get to the bottom of this.
    Dan

  • How do I add a screen shot, or screen capture, into a response post of my online classroom

    How do I add a screen shot, or image capture, into the response post of my online classroom?

    From a browser window?
    Abduction!: https://addons.mozilla.org/firefox/addon/3408
    FireShot: https://addons.mozilla.org/firefox/addon/5648
    Screenshot Pimp: https://addons.mozilla.org/firefox/addon/12985
    Screengrab: https://addons.mozilla.org/firefox/addon/1146

  • When I try to paste an CCI file into  a PSD, I get this message-   Could not complete the Paste command because the ICC profile is invalid. I need the layer to be an editable smart object! What's the solution?  Ron

    When I try to paste an CCI file into  a PSD, I get this message…   Could not complete the Paste command because the ICC profile is invalid.
    I need the layer to be an editable smart object! What's the solution?
    Ron

    I received the file from my client. However, last week I had no trouble pasting the same file into a PSD file, as a smart object.
    The color file is a label mechanical, which I place into a PSD file of the product. These are used for print ads and web graphics. The color is very critical and has worked really well for the last 4 years.
    I have used the default color settings in Creative Suite and its been working fine. They are in synch and, I have no idea how to re-assign the color profile. I’m a graphic Designer, color correction is not something I would do normally.
    Ron

  • Outlook 2010 freezes when pasting text from email into filename

    I use Microsoft Outlook 2010 (32-bit version), in a 64-bit computer (Dell laptop) using Windows 7 Enterprise, SP1.  (I work in a company and can't change what version of the Outlook program I am using.)  If I copy text out of an Outlook email,
    and then go to save the email by printing it to a PDF file using Adobe Acrobat X Professional, and I try to paste the copied text into the file name I am typing for the email being saved/"printed", then Outlook freezes on me.  I've
    noted that I can copy text from other programs (such as WordPerfect X3 or Adobe PDF files), and successfully paste them into the file name without Outlook freezing.  I can also copy text from an Outlook email, paste it as plain text into a WordPerfect
    X3 document, and then copy that same text again out of the WordPerfect X document, and I am able to successfully paste the text into the file name of the email I want to save without Outlook freezing (i.e., moving the text out of Outlook and then back
    again to Outlook somehow sanitized the text so it wouldn't freeze Outlook).  Note that my office switched from Windows XP to Windows 7 a few weeks ago, and I also received a clean installation of Office at that time.  This problem did not exist prior
    to the change to Windows 7.  Does anyone know what is causing the problem?  Is there some setting I need to change in Outlook?  (Maybe I had the Outlook setting correct in the old installation of Outlook, but the new Outlook installation wiped
    out my prior settings, and the new default setting recently installed is creating the problem?)

    Hi,
    First please make sure your Office is up-to-date.
    I suspect this may be related to some 3rd-party add-ins or the security software, first please run Outlook in Safe Mode to determine if 3rd-party add-ins are related:
    Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
    If there’s no problem copying and pasting in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    Please also disable the anti-virus program temporarily to check if this makes a difference.
    Regards,
    Melon Chen
    TechNet Community Support

  • Cp5 - Pasting text from Notepad into a text box

    I posted this message in the "Getting Started Forum" but there isn't a whole lot of activity in that forum.
    Hopefully someone can help me because I have a lot of text to paste into a lesson.
    This  seems like such an elementary requirement and I am almost certain that I  have done this before but...for some reason, copying text from Windows  Notepad into a Captivate 5 text box just isn't working today.
    Basically, the paste option is simply not available!
    Yes, I can copy paste into other applications; Captivate is the only application that is blocking this Windows function.
    If  I insert a Text Entry Box, I am able to paste single lines of text  (from Notepad) but obviously this isn't going to work as a text box.
    Is this by design or has something gone haywire?
    Question, how do I get pre-written text (i.e. from Notepad) into Captivate?
    Thanks

    Shawn,
    I have had that happen to me too.  I am always copying and pasting into my Captivate projects.  But sometimes the paste option is just not available.  What I have done, is to save everything and close the application and start it again.  Seems there's a lot of little irritating things like that with Captivate, that's corrected with a restart.  Hope this helps!
    Linda
    >>>
    From: shawninvancouver <[email protected]>
    To:Linda Highlander <[email protected]>
    Date: 8/3/2011 10:44 AM
    Subject: Cp5 - Pasting text from Notepad into a text box
    I posted this message in the "Getting Started Forum" but there isn't a whole lot of activity in that forum.
    Hopefully someone can help me because I have a lot of text to paste into a lesson.
    This  seems like such an elementary requirement and I am almost certain that I  have done this before but...for some reason, copying text from Windows  Notepad into a Captivate 5 text box just isn't working today.
    Basically, the paste option is simply not available!
    Yes, I can copy paste into other applications; Captivate is the only application that is blocking this Windows function.
    If  I insert a Text Entry Box, I am able to paste single lines of text  (from Notepad) but obviously this isn't going to work as a text box.
    Is this by design or has something gone haywire?
    Question, how do I get pre-written text (i.e. from Notepad) into Captivate?
    Thanks

  • Can We Paste Photoshop Smart Objects Into Illustrator (as Linked/Embedded)?

    Since raster editing is much more limited in Illustrator, is there a way to link or embed an individual Smart Object from Photoshop into Illustrator? I know there is an option to Place a file into Illustrator. But what if I have a larger Photoshop document with many Smart Objects in it, and just want to copy and paste one of those into Illustrator, but also have it update when I update it in Photoshop. Is this possible?

    Copy and Paste won't have a link to the original file. Only Place can have that.

  • I have used Image Capture to scan images/documents and then saved them as either PDFs or PNG files.  For some reason, just this past week Image Capture will no longer save the file.  It scans, and the Scan Results window pops up, but it won't save file.

    I have used Image Capture to scan images/documents and then saved them as either PDFs or PNG files.  For some reason, just this past week, Image Capture will no longer save the file.  It scans, and the Scan Results window pops up, but it won't save file.
    The file name has no special character in it, just letters and no spaces.
    I have done this in the past and it has worked, but now it will not.
    I have not upgraded any software, that I am aware of.
    After scanning, the Image Capture pops up the Scan Results with the file name in the window, but neither the Scan Results nor the Image Capture window responds to inputs.  The Image Capture window is frozen, with only the "Overview" and "Cancel" buttons active (but non-responsive).
    Is this a software issue or a scanner hardware issue?  I am using a HP Photosmart C6200 series printer/scanner on a network using a Time Capsule airport.
    Thanks.

    I had the same problem.
    Got a 90% fix.  Apparently the Mavericks preferences won't work with Yosemite, so I just deleted the Image Capture preferences.
    Unfortunately, the "Scan to" folder seems to be permanently set to the Pictures folder.
    1.  Quit Image Capture
    2.  Go to Finder > Go > Home, which opens up your home folder (named after your user name)
    3.  Open Library > Preferences > com.apple.ImageCapture.plist - Drag this file to the Trash
    4.  Start "Image Capture", click "Details" and change all your settings as you prefer
    5.  Quit and restart "Image Capture".   Notice it remembers all your settings except "Scan to" folder.  It insists on saving to "Pictures".
    That's as far as I was successful.  I tried changing the "Scan to" folder to "Desktop", but on launch, Image Capture always sets it back to "Pictures".
    This is what I tried:
    6.  Download and install "Pref Setter" from http://www.nightproductions.net/prefsetter.html
    7.  Quit "Image Capture".  Right-click on "com.apple.ImageCapture.plist" and open with Pref Setter.
    8.  Search for "Pictures", which finds "~/Pictures" (the tilde character at the start means your home directory).
    9.  Double-click on "~/Pictures" and change it to the folder you prefer.  I like "~/Desktop"
    10. Choose File > Save then Quit from Pref Setter.  Note that re-opening the plist file still shows "~/Desktop"
    11. Start up "Image Capture" -- on startup, "Image Capture" sets "Scan to" folder to "Pictures"
    I consider this a bug.

Maybe you are looking for