Search:

Type: Posts; User: Vergil333@gmail.com

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    1,798

    Re: Random key press

    I know how to write robot to press a key. I need to know how to write event that choose random keys (key 'A' or key 'D').
  2. Replies
    6
    Views
    1,798

    Re: Random key press

    to write a loop that "press" (simulate pressing) a key on keyboard.
  3. Replies
    6
    Views
    1,798

    Random key press

    Hello again!

    Now I need to know how to simulate random key stroke. Not all keys - only 'A' and 'D'.
    I don't know how to do that. Maybe

    simulate random float number from 0 to 20. If x=0-10 then...
  4. Replies
    2
    Views
    1,818

    Re: returning color of pixel in loop

    Thank you, it helped me. I used

    System.out.println("Value of color is "+ spd);

    and it gave me different value of color. I tried to use them and now it is working fine.

    So far I was using...
  5. Replies
    2
    Views
    1,818

    returning color of pixel in loop

    Hello everyone!

    Ok, here is part of my code:

    Color c = robot.getPixelColor(663, 60);
    Color red_Battle = new Color(231,50,42);

    ...
  6. Replies
    5
    Views
    2,071

    Re: Class Waypoints

    WayPoint (Envinsa 4.1 Java Edition)
    I found it on google when I was looking for creating waypoints... So it is not in Java SE then?

    I wanted to use this for detecting car's position:


    import...
  7. Replies
    5
    Views
    2,071

    Re: Class Waypoints

    For now I have only one package. Do I need to create new package? I am not even sure what is their purpose. I installed NetBeam just 2 weeks and I wasn't programming in Java before.

    Java SE... had...
  8. Replies
    5
    Views
    2,071

    Class Waypoints

    Hello everyone!

    I know that in Java is class WayPoint but I do not have a clue how it works. Is it just for gps systems?

    I need to create program where are waypoints and white point is...
  9. Replies
    14
    Views
    2,782

    Re: How to get getPixelColor to Loop

    Hallo again. It is working now good :) In my code I have a looot of loops in other loops and them in other loops :) Adding println really helped me to find and fix issues that I had. There is still...
  10. Replies
    14
    Views
    2,782

    Re: How to get getPixelColor to Loop

    It didn't :) But I think problem is in statements inside the While.

    Here is something from the code:
    public static void main(String[] args) throws InterruptedException {
    int l=0;
    ...
  11. Replies
    14
    Views
    2,782

    Re: How to get getPixelColor to Loop

    Thank you, that should resolve my problem. Really thanks :)
  12. Replies
    14
    Views
    2,782

    Re: How to get getPixelColor to Loop

    Sorry, my English is bad. I will try to explain myself.

    robot.getPixelColor takes colour of pixel on coordinates x=1147 and y=706 and write it to variable End.
    If colour is not the same as in...
  13. Replies
    14
    Views
    2,782

    How to get getPixelColor to Loop

    public static void main(String[] args) throws InterruptedException {

    try {

    Robot robot = new Robot();
    Color End = robot.getPixelColor(1147, 706);
    ...
Results 1 to 13 of 13