DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: hot to issue the command of Ctrl-C (copy) using Java

  1. #1
    Join Date
    Jul 2007
    Posts
    3

    hot to issue the command of Ctrl-C (copy) using Java

    Respected Members,
    In Java is it possible to issue the command of Ctrl-C
    (copy) directly from a program, suppose I have many
    different windows running on my desktop(Win XP) but
    since in MS Windows OS at one time only one window is
    active, lets say the active window is Java Application
    which I have purchased from a vendor, is it possible
    to write a program in which when ever the user enters
    some hot key lets say Ctrl-F1 than my Java program
    traps this event and issue a command of Ctrl-C at the
    back end, as a consequence any selected text written
    in these Java windows would be Copied, to issue Ctrl-C
    command will I need to access the Win 32 API or is
    this possible directly using Java, please guide me how
    can this be possible, I would be thankful to you from
    the depth of my heart if you can guide me to the
    solution.

    Thanking You,
    Bilal Ali

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    You have the ability to implement clipboard functionality in Java programs YOU write (I don't know how you will add it to the code of applications you buy). Take a look at this article which discusses the java.awt.datatransfer package which is available to you through the JDK:

    http://www.javaworld.com/javaworld/j...javatip61.html

Similar Threads

  1. I a bit lost with java security issue
    By texasoasis in forum Java
    Replies: 0
    Last Post: 06-16-2006, 05:02 PM
  2. Replies: 3
    Last Post: 06-06-2006, 09:44 AM
  3. .NET vs. Enterprise Java: Who's Got Better Security?
    By Glen Kunene in forum Talk to the Editors
    Replies: 17
    Last Post: 03-23-2002, 01:43 AM
  4. j#.not
    By Brad O'Hearne in forum Talk to the Editors
    Replies: 2
    Last Post: 11-05-2001, 10:32 AM
  5. HOT Commodity - Java Programmers... we need you!!
    By Michelle Albanese in forum xml.announcements
    Replies: 0
    Last Post: 04-14-2000, 05:45 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center