Search:

Type: Posts; User: Lurie1

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Re: I had an old code it really sucked, so i now am making a new one

    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?
  2. Re: I had an old code it really sucked, so i now am making a new one

    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...
  3. Re: I had an old code it really sucked, so i now am making a new one

    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
  4. Re: I had an old code it really sucked, so i now am making a new one

    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...
  5. Re: I had an old code it really sucked, so i now am making a new one

    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
    ...
  6. Re: I had an old code it really sucked, so i now am making a new one

    <
    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...
  7. Re: I had an old code it really sucked, so i now am making a new one

    <

    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...
  8. Re: I had an old code it really sucked, so i now am making a new one

    ok ill get back to you with the code
  9. Re: I had an old code it really sucked, so i now am making a new one

    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...
  10. Re: I had an old code it really sucked, so i now am making a new 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...
  11. Re: I had an old code it really sucked, so i now am making a new one

    <

    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...
  12. Re: I had an old code it really sucked, so i now am making a new one

    <
    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...
  13. Re: I had an old code it really sucked, so i now am making a new one

    allrighty tut's here i come!
  14. Re: I had an old code it really sucked, so i now am making a new one

    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?
    ...
  15. Re: I had an old code it really sucked, so i now am making a new one

    <
    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...
  16. Re: I had an old code it really sucked, so i now am making a new one

    ya i was just looking at that and it dose not do anything
  17. Re: I had an old code it really sucked, so i now am making a new one

    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
  18. Re: I had an old code it really sucked, so i now am making a new one

    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...
  19. Re: I had an old code it really sucked, so i now am making a new one

    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...
  20. Re: I had an old code it really sucked, so i now am making a new one

    okey dokey one sec
  21. Re: I had an old code it really sucked, so i now am making a new one

    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...
  22. Re: I had an old code it really sucked, so i now am making a new one

    ok will do ill post it when im finished
  23. Re: I had an old code it really sucked, so i now am making a new one

    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...
  24. Re: I had an old code it really sucked, so i now am making a new one

    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.
  25. Re: I had an old code it really sucked, so i now am making a new one

    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...
Results 1 to 25 of 40
Page 1 of 2 1 2