This library started out as a simple wrapper for Oracle's java.awt.Robot package but it evolved out of hand into a library of general utilities. Some of these functions appear to duplicate functionality already present in B4J however this library is designed to be used in both UI apps and non-UI apps. Consequently, B4J functionality that requires the use of a JFX object (fx.showExternalDocument(), for example) is duplicated here but without the use of any objects only found in UI apps.
Things you can do with this library:
EDIT (8JUL2015): Added hostNameAndIPAddress() method. Library version remains the same, but it is a new file.
EDIT (30JUL2015): Updated to 1.1. See post #12 for details.
EDIT (25OCT2015): Updated to 1.3. See post #20 for details.
EDIT (26OCT2015): Updated to 1.35. See post #27 for details.
EDIT (22NOV2015): Updated to 1.37. See post #30 for details.
EDIT (30NOV2015): Updated to 1.4. See post #31 for details.
EDIT (30JAN2016): Updated to 1.42. See post #34 for details.
EDIT (31JAN2016): Updated to 1.45. See post #35 for details.
EDIT (31JAN2017): Updated to 1.50. See post #79 for details.
EDIT (02FEB2017): Updated to 1.51. See post #85 for details.
EDIT (06FEB2017): Updated to 1.52. Minor bug fix.
EDIT (04APR2017): Updated to 1.54. Bug fix for relaunchSelfX methods.
EDIT (28DEC2017): Updated to 1.55. Added ScreenCapture2. Read comments for more info.
EDIT (09JAN2019): Updated to 1.59. RobotPaste debugging build
EDIT (14JAN2019): Updated to 1.61. Another RobotPaste2 debugging build
Things you can do with this library:
- programmatically move the mouse and invoke system MouseButtonPressed events or KeyPressed events and much more
- access the system clipboard
- get a variety of general operating system, hardware and JVM info
- get a variety of JVM, process and system performance info (memory usage, CPU load, etc...)
- take screen shots of arbitrary rectangles on the system's screens
- run arbitrary commands on the command line
- redirect Standard Error and Standard Out to file
- open external files or URLs
- improved Exception-related stuff
- improved Thread-related stuff
- restart your app
EDIT (8JUL2015): Added hostNameAndIPAddress() method. Library version remains the same, but it is a new file.
EDIT (30JUL2015): Updated to 1.1. See post #12 for details.
EDIT (25OCT2015): Updated to 1.3. See post #20 for details.
EDIT (26OCT2015): Updated to 1.35. See post #27 for details.
EDIT (22NOV2015): Updated to 1.37. See post #30 for details.
EDIT (30NOV2015): Updated to 1.4. See post #31 for details.
EDIT (30JAN2016): Updated to 1.42. See post #34 for details.
EDIT (31JAN2016): Updated to 1.45. See post #35 for details.
EDIT (31JAN2017): Updated to 1.50. See post #79 for details.
EDIT (02FEB2017): Updated to 1.51. See post #85 for details.
EDIT (06FEB2017): Updated to 1.52. Minor bug fix.
EDIT (04APR2017): Updated to 1.54. Bug fix for relaunchSelfX methods.
EDIT (28DEC2017): Updated to 1.55. Added ScreenCapture2. Read comments for more info.
EDIT (09JAN2019): Updated to 1.59. RobotPaste debugging build
EDIT (14JAN2019): Updated to 1.61. Another RobotPaste2 debugging build
Attachments
-
jAWTRobot.zip11.1 KB · Views: 1,103
-
jAWTRobot1.1.zip13.6 KB · Views: 731
-
jAWTRobot1.3.zip15.1 KB · Views: 690
-
jAWTRobot1.35.zip15.5 KB · Views: 719
-
jAWTRobot1.37.zip15.7 KB · Views: 696
-
jAWTRobot1.4.zip16.1 KB · Views: 750
-
jAWTRobot1.42.zip16.6 KB · Views: 664
-
jAWTRobot1.45.zip19.7 KB · Views: 880
-
jAWTRobot1.50.zip21.6 KB · Views: 696
-
jAWTRobot1.51.zip22.1 KB · Views: 637
-
jAWTRobot1.52.zip22.1 KB · Views: 746
-
jAWTRobot1.54.zip22.1 KB · Views: 874
-
jAWTRobot1.55.zip22.8 KB · Views: 925
-
jAWTRobot1.59.zip22.6 KB · Views: 579
-
jAWTRobot1.61.zip23.2 KB · Views: 1,627
Last edited: