Results 1 to 7 of 7
- 04-05-2012, 08:07 AM #1
Member
- Join Date
- Oct 2011
- Posts
- 5
- Rep Power
- 0
How to capture copy event in windows
Dear hackers of java,
i want to capture copy paste event through java , but the copy paste event in no tin java gui , its from windows
that means you press crtl + c or v and then java listens to this shortcut and process on it , first before processing i need to capture it
is there any method possible , from my perspective its like capturing event out of jvm because java uses virtual machine and out of virtual machine it can not access the machine , so i though it might be impossible
so please share a method of making this possible if this can be done
thanks i advance
anshul katta
- 04-05-2012, 08:36 AM #2
Re: How to capture copy event in windows
You can poll the system clipboard, if that serves your purpose.
What do you need this for? There may be an easier or better approach to the problem.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 04-05-2012, 12:24 PM #3
Member
- Join Date
- Oct 2011
- Posts
- 5
- Rep Power
- 0
Re: How to capture copy event in windows
sir , you didnt understand my problem...let say you are working on windows and text editor where you copy and paste but instead of
pasting in text editor or whatever , the copied text must be listened into a java program which will be running aside...
and what the hell poll the system clipboard means....."is that means copying from clipboard"
regards
Anshul Katta
- 04-05-2012, 12:59 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Re: How to capture copy event in windows
Java doesn't really do "listening in" on other applications, especially OS related stuff.
Darryl is simply suggesting your only option might be to get Java to check the clipboard every so often ("poll" it) to see if there's anything in there.
No guarantee that'll do what you want, as you haven't actually told us what you want to achieve. That is, why this requirement exists.Please do not ask for code as refusal often offends.
- 04-05-2012, 02:24 PM #5
- 04-05-2012, 04:52 PM #6
Member
- Join Date
- Oct 2011
- Posts
- 5
- Rep Power
- 0
Re: How to capture copy event in windows
Ok , sir
you are right , JVM do not allow to peep out of it and touch OS , well the main requirements is i want to develop a software which can intercept copy paste shortcut which we do oftentimes and creates a copy of it in stack , its because everytime we copy something , the before copy is overwritten with new...so i want to develop a tool to keep track of the text copies , the tool goes by the name "Copy Log"
think like IDM pops out download this video in browser , its alive in the tray of windows , kind of that software
please tell me how i can develop this , in any other language it is possible , i will learn , i know Java , c
thank you
Anshul katta
- 04-05-2012, 04:55 PM #7
Member
- Join Date
- Oct 2011
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
Best way to paste (from clipboard) to other windows in Windows
By Fra in forum AWT / SwingReplies: 13Last Post: 07-20-2012, 07:58 PM -
Capture
By PhQ in forum New To JavaReplies: 7Last Post: 10-17-2010, 05:26 PM -
How to capture Windows Active User
By chyrl in forum Advanced JavaReplies: 4Last Post: 06-11-2010, 09:21 AM -
checking for an event during an event
By infinity in forum AWT / SwingReplies: 22Last Post: 04-09-2009, 01:08 AM -
Requesting help in copy paste of folder similar to windows.
By selvin_raj in forum Advanced JavaReplies: 1Last Post: 06-23-2008, 06:46 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks