Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i need to build a tool to copy all the text that is selected by mouse.that means the text must get copy when i select
the particular condense by mouse selection from any where
and must paste in text box when the mouse point to the text box.keyboard and mouse copy paste must not be used physically.
Posted
Updated 15-Sep-11 22:42pm
v2
Comments
Mehdi Gholam 16-Sep-11 4:47am    
What's wrong with ctrl+c ctrl+v ??
OriginalGriff 16-Sep-11 5:18am    
Why? That would annoy the heck out of me, and probably out of anyone who is familiar with Windows. The rule is: you only affect the clipboard when the user tells you to.
For example, one of the things I do quite often on this site is highlight a phrase with the mouse, then paste on a link address - the site then converts this to a proper link with the text as the human readable part. You system would bugger that up completely, and annoy me immensely.

1 solution

Totally agree with Mehdi Gholam and OriginalGriff - if you really must copy text on selection and paste on mouse point at least use a drag/drop gesture similar to how office does it with its cut/paste operation - this way the user has a clue what is going on and is actually driving the request rather than accidentally - I would also suggest that if you are going to affect the clipboard doing this, then you restore the clipboard to its original start once you have completed you operation as it is non-intuative to most users.
 
Share this answer
 
Comments
sajithnet 16-Sep-11 5:49am    
i need to create a tool for copy past based on my question.i googled but
there is no source code available.hope u will help me
sajithnet 16-Sep-11 7:25am    
uy

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900