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?
Type: Posts; User: Lurie1
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
yes two separate methods, now the question i have is how would i declare the RGB a variable and the (x, y) a variable when there are 3 and 2 components of each one and methods can hove only one...
ok so i should build 2 methods, one that has a variable say the RBG pixel data and returns the (x, y) position of that pixel, and another method that has the variable of (x, y) and returns the pixel...
<
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...
allrighty tut's here i come!
well according to my outline this method needs to be able to return all or one of the following:
x
y
RGB color
now how would i got about putting those three returns in to a class as a member?
...
<
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...
ya i was just looking at that and it dose not do anything
oh i see a problem that is suppose to call the method to find the pixel indicated 196, 195, 181 and return the x, y values and true or false depending on if it found it or not
no you remember my original code? well i had it there so each time i wanted a pixel returned i had a different get pixel method, i was told and agree that that was a bad way to go about it, what i...
java GB.java
program searches for color (196, 195, 181)
program moves mouse to color
program clicks color
program releases mouse
program searches for color (95, 118, 127)
program moves...
okey dokey one sec
ok let me explain it's concept to you:
the program when launched will recognize two colors, it will click on them one after the other to open the game window. when the cage window is open the...
ok will do ill post it when im finished
i suppose it should have 0 and so should x, the only thing is when it returns with a x,y and pixel as true or false those x,y values would be the ones used for mouseMove and in the next run through i...
well i want (x, y) to be the pixel coordinates of the pixel either just found through a call with a new input color or the coordinates being called to find the color.
ok ill fix that code, so how would i be able to call that variable, for say the mouse move, or assign (x, y) something if i want to check a specific pixel, i would have to declare them as variables...