November 2005
Intermediate to advanced
304 pages
6h 14m
English
The Java core (1.3 and above) includes a class called java.awt.Robot. This class does not represent a physical robot as in the previous section. Instead, it lets you control the mouse and keyboard as if the user had directly operated them. In fact, the mouse actions can even interact with external programs and the user environment (desktop, menus, and so on). You might use this to run an automated testing process, for example, or to simulate user actions in a demonstration or help program. The methods work using absolute screen coordinates rather than window coordinates. Let's assume ...
Read now
Unlock full access