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


PressKey To press a keyboard key
ReleaseKey To release a keyboard key
PressAndReleaseKey To press and release a keyboard key.
MouseClick To click X and Y coordinates
InvokeApplication To invoke remote application
PutFile To send a file to a remote machine
CaptureScreen To capture screen-shot




Apache License, Version 2.0


Iva Dimitrova Trendafilova & Asiq Ahamed

Download Robotil

Please fill out the form below to download Robotil.

12 thoughts on “Robotil

  1. I’m not able to run the Robotil. i’m getting this error “Server is not reachable… IP[] Port[6666]”
    Robotil server has started “Robotil server is ready… Port[6666]”
    Is there anything I’m doing wrong.

  2. robotil.putFile(“C:\sourceFile.txt”,”C:\destFile.txt”) throwing error as org.apache.mina.filter.codec.ProtocolEncoderException: org.apache.mina.core.buffer.BufferDataException:

    Is there anything I am doing wrong??

  3. Hi. I’m trying to hit Space on remote machine but it works ONLY if I’m connected with RDP and remote desktop is open on my machine. If I minimize or close RDP window with remote desktop the autotest fails due Space wasn’t pressed, despite the console says that Space was pressed and released.

    I hoped it will works without any connect with remote machine. Or maybe I am doing something wrong?

    Thank you.

  4. hello after importing it is throwing me errors as the constructor robotil string,int is undefined.Can you please help me on this

  5. You need to :
    On your local computer, close all open Remote Desktop sessions.

    Launch the Registry editor (regedit.exe).

    Navigate to one of the following Registry keys, depending on whether you wish to modify the Remote Desktop settings only for the current user or for all users on the computer:

    HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client

    HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client

    Create a DWORD value named RemoteDesktop_SuppressWhenMinimized and set it to 2.

    Close the Registry Editor.

  6. Thanks a lot Codoid Team for Robotil.
    Have a problem. Do we have a fix for this error while putting files on remote? –
    robotil.putFile(“C:\sourceFile.txt”,”C:\destFile.txt”) throwing error as org.apache.mina.filter.codec.ProtocolEncoderException: org.apache.mina.core.buffer.BufferDataException:

  7. Hi,
    I’m using robotil jar in my project. its working fine on my remote system. But the remote system is log off or sleep time is not working.

    1. Can u please share some code piece that how to Configure Robotil .

      In my case:URL url=new URL(“http://********:4444/wd/hub”);
      DesiredCapabilities cap=;

      WebDriver driver=new RemoteWebDriver(url, cap);

      Robotil rc=new Robotil(url.toString(), 0);



      output:Server is not reachable.***********

  8. I added robotil jar in my project configbuild path but while runtime it’s throwing NoClassDefFoundError can you please help me out to fix this issue…

Leave a Reply

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