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').
Type: Posts; User: Vergil333@gmail.com
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').
to write a loop that "press" (simulate pressing) a key on keyboard.
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...
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...
Hello everyone!
Ok, here is part of my code:
Color c = robot.getPixelColor(663, 60);
Color red_Battle = new Color(231,50,42);
...
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...
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...
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...
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...
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;
...
Thank you, that should resolve my problem. Really thanks :)
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...
public static void main(String[] args) throws InterruptedException {
try {
Robot robot = new Robot();
Color End = robot.getPixelColor(1147, 706);
...