-5

I wonder is possible to make a bot writen in JAVA, which will open some program(program is under windows), click on the button in this program and type some data, check status of this program(login or logout, this is client for online game). Which JAVA tools I need ? I think that java robot lib is not enough for this.

Thanks in advance.

PDS
  • 562
  • 3
  • 13
  • 27
  • 2
    Why is it not enough for what you need? Show your code and ask a specific programming question that is answerable. – Erwin Bolwidt Jun 01 '14 at 15:40
  • Question was just a theory, I never before seen Robot libs in use, I just want to know some opinion before I start develop something. Thanks for Your time. – PDS Jun 02 '14 at 10:04
  • 1
    Try AutoIt. It's designed for this. – Boann Jun 08 '14 at 21:03

1 Answers1

-8

You cannot do this using JAVA. JAVA is a language which is loosely coupled with operating systems, so it can only receive mouse/key messages from underlying OS. Among all the tasks you mentioned , it can only start the program by using Runtime.execute.

If you want to implement a software like this ,you should use Visual Studio and use Microsoft technologies.

  • 4
    The Java `Robot` class can move the mouse and send keystrokes right out of the box; I'm not sure why you'd say it isn't possible. – Henry Keiter Jun 01 '14 at 15:45
  • This question refers to this behaviour; [How to simulate a real mouse click using java?](http://stackoverflow.com/questions/19185162/how-to-simulate-a-real-mouse-click-using-java). Obviously its really horrible to figure out where you should be clicking, but it can be done – Richard Tingle Jun 01 '14 at 15:45