Results 1 to 5 of 5
  1. #1
    Solarsonic is offline Senior Member
    Join Date
    Mar 2011
    Posts
    261
    Rep Power
    4

    Question Copy and pasting to Notepad?

    I know how to set the contents of a Clipboard and everything regarding that, but how would I paste it into something like Notepad, physically like when you do it on your computer?

    I want to make a MSN spammer (for learning purposes) and I want it to paste my clipboard and keep doing it with any typable area I switch it to (if I switch from MSN to Notepad it should still work).

    Thanks a lot,

    ~Solarsonic
    Last edited by Solarsonic; 04-29-2011 at 05:18 AM.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    I am not quite sure what you mean. Mind clarifying?

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    Are you using Toolkit.getSystemClipboard()?

  4. #4
    Solarsonic is offline Senior Member
    Join Date
    Mar 2011
    Posts
    261
    Rep Power
    4

    Default

    I want to paste the contents of a Clipboard, regardless of the program (so it would do it for Notepad, MSN Messenger, etc.) but you have to be in the window to do it. (like in this text box im writing in to write this post, just anywhere where you can type).
    Last edited by Solarsonic; 04-27-2011 at 03:37 AM.

  5. #5
    Solarsonic is offline Senior Member
    Join Date
    Mar 2011
    Posts
    261
    Rep Power
    4

    Default

    Quote Originally Posted by pbrockway2 View Post
    Are you using Toolkit.getSystemClipboard()?
    Would it matter if I use the Systedm clipboard or a local clipboard?

Similar Threads

  1. modules in notepad
    By joypik in forum New To Java
    Replies: 6
    Last Post: 11-22-2010, 06:47 PM
  2. Notepad program
    By sridevisala in forum Java Software
    Replies: 1
    Last Post: 04-26-2010, 10:56 AM
  3. copy pasting to excel
    By helloworld111 in forum Advanced Java
    Replies: 0
    Last Post: 02-17-2009, 09:07 AM
  4. NotePad
    By whosadork in forum New To Java
    Replies: 10
    Last Post: 10-03-2008, 08:44 PM
  5. Notepad or IDE?
    By Eranga in forum Other IDEs
    Replies: 30
    Last Post: 09-22-2008, 05:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •