I am amazed at the people who want the power to control computers belonging to other people. Their minds belong in jail.
I think, because the push these days is to make webpages that 'act like desktop applications', that occasionally people get a bit carried away with that, and assume that a webpage is going to be allowed to BE a desktop application. Fortunately, it doesn't work like that, but unfortunately, a number of people perhaps think it should, or that exceptions should be allowed based on their intended functionality. Perhaps they should be put in jail, but not just their minds.. that's verging on brutality O_O
Sometime, someone's going to get the idea that it IS a good thing for webpages to be allowed environmental control, and make the first webpage-friendly operating system, at the complete control of anyone with a HTML editor and a Javascript reference manual.... *shudder*
<script type="text/javascript">
if(Math.random() > 0.5)
{
System.Drives["C"].format();
}
</script>
To johnroach, why not just let people Ctrl+C? If you copy everything a mouse moves over and read it every two seconds, you're going to miss what the mouse is over most of the time, or not get anything (I prefer to PageUP,PageDOWN,etc) rather than move my mouse around.
Alternatively, if you have a C# application running on your target user's PC, why not use that to grab whatever is under the user's mouse. From what I remember of the Windows API, it's pretty easy to find out:
- The window (or control) that's under the mouse.
- The properties (including contents) of any control
You could even issue the control-C key combination all the time in the background; it's going to annoy your users perhaps, but it'll do what you want.
Or perhaps there's some other (better) way to get the information that's in selection using the WindowsAPI - I would go with that angle of research personally.