Release Date: January 11, 2024
Robotil is a simple library to press/release keyboard keys, click coordinates, take screen-shot and invoke application on remote machine.
java -jar Robotil.jar (Default portNumber is 6666) java -jar Robotil.jar 5555
Example
Robotil robotil=new Robotil("localhost", 5555); robotil.pressAndReleaseKey(KeyEvent.VK_ENTER);
PressKey
To press a keyboard key
robotil.pressKey(KeyEvent.VK_A);
ReleaseKey
To release a keyboard key
robotil.releaseKey(KeyEvent.VK_A);
PressAndReleaseKey
To press and release a keyboard key.
robotil.pressAndReleaseKey(KeyEvent.VK_A);
MouseClick
To click X and Y coordinates
robotil.mouseClick(10,30,InputEvent.BUTTON1_MASK)
InvokeApplication
To invoke remote application
robotil.invokeApplication("notepad.exe");
PutFile
To send a file to a remote machine
robotil.putFile("C:sourceFile.txt","C:destFile.txt")
CaptureScreen
To capture screen-shot
robotil.captureScreen("C:imgsrobotiltest.png")
Iva Dimitrova Trendafilova & Asiq Ahamed
Comments(0)