Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Robot Class:

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Location
    Johannesburg
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Robot Class:

    Hi All

    Is it possible to send a 2D array's index as a parameter to the mouseMove method in the robot class? example: r.mouseMove([1][2])

    Kind regards
    Feroze


  2. #2
    Member
    Join Date
    Mar 2012
    Location
    United States
    Posts
    118
    My Mood
    Inspired
    Thanks
    1
    Thanked 33 Times in 31 Posts

    Default Re: Robot Class:

    The method signature is:
    mouseMove(int x, int y)
    So long as you can supply two separate integer values as arguments then you are fine. Otherwise it won't work.

  3. #3
    Junior Member
    Join Date
    Apr 2012
    Location
    Johannesburg
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Re: Robot Class:

    Quote Originally Posted by KucerakJM View Post
    The method signature is:
    mouseMove(int x, int y)
    So long as you can supply two separate integer values as arguments then you are fine. Otherwise it won't work.
    Thank you, I really appreciate your advice.

Similar Threads

  1. Replies: 8
    Last Post: April 21st, 2013, 08:20 AM
  2. How to Sendkeys to an application in Java using the Robot Class
    By JavaPF in forum Java SE API Tutorials
    Replies: 6
    Last Post: August 4th, 2011, 12:13 AM
  3. Need Help for Robot class even on inactive window
    By jamsubzero in forum Java Theory & Questions
    Replies: 3
    Last Post: March 5th, 2011, 08:29 PM
  4. How to Sendkeys to an application in Java using the Robot Class
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 4
    Last Post: October 24th, 2009, 11:40 PM
  5. Java program to contol computer mouse using the awt Robot and events
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 3
    Last Post: February 11th, 2009, 03:17 PM