This content has been marked as final. Show 4 replies
As Andrew says, the Robot works fine on Windows 7, as 'fine' as such a class can work. What I mean by that?
Applications based on the Robot class are inherently fragile and subject to failures when: screen resolution changes, UI themes are invoved, aero, client application changes or 'adapts' itself to another environment. This is especially true when it comes to mouse handling: a click at x,y that was hitting a button in environment A may hit nothing in B.
So yes, the Robot works in Windows 7, but you may have to rewrite the application.
By the way, after trying hard some ltime ago to use java and the Robot for such things and having to struggle with JNI to get something reasonable, I completely gave up and re-wrote it in C#. Even in C# I absolutely stayed away from the mouse, but my client application had keyboard support for al I needed. And even in C# I had to call native API's, but it's easier.
Edited by: baftos on Nov 14, 2010 11:59 AM