Robot not working after another app gains focus
843807Mar 3 2010 — edited Mar 11 2010I'm trying to automate some clicking for a program using Robot. The problem is, once I give focus to the target program, Robot stops working (so basically, the initial click into the program works, but it's useless if I can't release the mouse). Intuitively, it seems like the target program has somehow gained a higher priviledge to control the mouse or something if it has focus. Programmatically giving focus back to the java program after every event won't work. Is there a way to fix this, or should I try something more native to Windows like C#?
This target program has a 3D interface and it uses DirectX and stuff, which might be why it (can) eats up control of the mouse. However I just think it's badly programmed, I tried doing some Robot stuff on a game and it seems to work.