Robotil - Codoid
Select Page

Robotil

Name

Robotil

Version

1.10

Date

March 10, 2016

Robotil is a simple library to press/release keyboard keys, click coordinates, take screen-shot and invoke application on remote machine.

How to use

  • 1) Download Robotil.jar
  • 2) Start Robotil server on a remote machine.
    java -jar Robotil.jar (Default portNumber is 6666)
    java -jar Robotil.jar 5555
    
  • 3) Reference Robotil jar in java project on a client machine
  • 4) Create an object for Robotil class by mentioning remote IP and port
  • Now, it is ready to use
  • Example

    Robotil robotil=new Robotil("localhost", 5555);	
    robotil.pressAndReleaseKey(KeyEvent.VK_ENTER);
    

Methods

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")

Version

Robotil-1.10.jar

License

Apache License, Version 2.0

Contributors

Iva Dimitrova Trendafilova & Asiq Ahamed

Written By

Submit a Comment

Your email address will not be published. Required fields are marked *


Comments(1)

  • 1 month ago

    Nice tool

Robotil

Name

Robotil

Version

1.10

Date

March 10, 2016

Robotil is a simple library to press/release keyboard keys, click coordinates, take screen-shot and invoke application on remote machine.

How to use

  • 1) Download Robotil.jar
  • 2) Start Robotil server on a remote machine.
  • 3) Reference Robotil jar in java project on a client machine
  • 4) Create an object for Robotil class by mentioning remote IP and port
  • Now, it is ready to use
  • Example

    Robotil robotil=new Robotil("localhost", 5555);	
    robotil.pressAndReleaseKey(KeyEvent.VK_ENTER);
    

Methods

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")

Version

Robotil-1.10.jar

License

Apache License, Version 2.0

Contributors

Iva Dimitrova Trendafilova & Asiq Ahamed

model-with-laptop