to a robot function i want to move the mouse to that point
Type: Posts; User: Lurie1
to a robot function i want to move the mouse to that point
so the steps for specifying a point to either check would be, rectangle coordinates x, y + coordinates specified right?
yea i drew them out, ok well i guess if they have to be set like that they do...
well the problem because i could use screen coordinates for x, y but the rectangle will be in a different place every rime a random place on screen so would i have to say for each chunk of code set...
ok newbie question but once i set a rectangle using the robot class like the one above is there a way i can set that as the screen so when i say robot.mouseMove(x, y) it will move to the x, y inside...
ok will do
ps i understood the above just did not check if they were in the correct order assuming something was wrong with the code not the placement.
thanks norm i didn't realize i had them in the wrong order, i just updated the code to reflect this! but i don't have to define the variable i guess im using the wrong variable that bit of code where...
<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Toolkit;
import...
this is my code i have a few problems but this is the biggie:
<
{
Robot robot = new Robot();
Color color0 = new Color(39, 36, 11);
Rectangle a = new Rectangle(0, 0, 1365, 770);...
<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Toolkit;
import...
ok so where would i put it? i took it out completely and its still not looping, do i need to put it in at the end of the method?
ok explanation, no i want that chunk of code to repeat over and over again until it returns with a true (an i found the pixel mate) and im hoping the while loop is the best one but im open to...
<
{
Rectangle rectangle = new Rectangle(0, 0, 1365, 770);
{
while(true)
{
BufferedImage image = robot.createScreenCapture(rectangle);
search: for(int x = 0; x <...
no i guess it does not but i imported the untility.Arrays so i was under the impression i could use search and other tools without making methods around them?
the reason im posting is because i dont know how to solve them and i understand them but because i imported the whatchumacallit and all idk why im getting them
1. java:43 cannot find symbol...
this is the code i have so far:
<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
so in the method class i would set inputColor == and then i would just do Mouse.move and the x, y will be the set after i set inputColor?
Ok so i have this class which is my find pixel class, i believe as it is now it will when called find the inputColor value and set its location using the set location. What i need to do now is make...
well the method will take a screen shot, search the shot for the color that was input through int inputColor and return the x, y of the pixel with that specific color
what do you mean how am i going to return the x, y values. I'm going to call the method and get both the x and y values of the color specified set them in the main class as current x,y values and use...
ok this is not working for me:
i want this method to take the input pixel value RGB value and search the screenshot for it returning the Point(x, y) of that pixel when it is found: i get the error
...
<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Toolkit;
import...
<
import java.awt.*;
import java.awt.event.*;
import java.awt.Robot;
import java.awt.AWTException;
import java.awt.Rectangle;
import java.awt.Color;
import java.awt.Toolkit;
import...
ok ill get back to you with the code