This content has been marked as final. Show 4 replies
Moderator action: Moved from Java Programming.
I just checked the new version of the client application on windows xp and it works.
So something in windows 7 is the problem.
Anyone encountered problems with robot in windows 7?
tomster wrote:I doubt it.
..So something in windows 7 is the problem.
Anyone encountered problems with robot in windows 7?Not me. I wrote a little app. to click the 'snap picture' button of a webcam feed on VLC media player, and it is working just fine under Win. 7 on both a desktop and netbook.
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