It facilitates the three main functionalities, provides control over the mouse and keyboard, and captures the screen also. In short, the Robot class is used to control the peripherals (mouse and keyboard). The primary purpose of the Robot class is to facilitate automated testing of Java platform implementations. By using the Robot class we will create a Java program and control the keyboard and mouse. Along with this, we will also create a Java program to control the keyboard and mouse. In this section, we will discuss the Java Robot class and its methods. In other words, we use the Java Robot class to trigger the input events, such as mouse click, keypress, etc. The class is used to generate native system input events for test automation, self-running demos, and other applications where the control of the mouse and keyboard is required. In Java, Robot is a class that belongs to the java.awt package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |