lilandywandy Posted January 24, 2005 Share Posted January 24, 2005 err.. lets say pixel 909 909 can i make a script which constantly checks the coord and if that coord is lets say 000000, then do [commands] if coord is 000001, then do [commands] if coords is 000002, then do [commands] like what i mean is i want the computer to check the coord like constantly [ like every 5 secs] and depending on what color that spot is, do different funtions Link to comment Share on other sites More sharing options...
therks Posted January 24, 2005 Share Posted January 24, 2005 Yes you can. Use an infinite while loop, have it check the pixel at the beginning and assign the value to a variable. Then have several if statements checking the variable you just set, and use them to do your commands. Then at the end of the while loop, have a sleep of 5 seconds. That should work. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Wolvereness Posted January 24, 2005 Share Posted January 24, 2005 Try this:Call('_TheColor' & $Number) The note is for each $Number have a Func/EndFunc Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote] Link to comment Share on other sites More sharing options...
lilandywandy Posted January 24, 2005 Author Share Posted January 24, 2005 (edited) err.. lets say pixel 909 909can i make a script which constantly checks the coordand if that coord is lets say 000000, then do [commands]if coord is 000001, then do [commands]if coords is 000002, then do [commands]like what i mean is i want the computer to check the coord like constantly [ like every 5 secs] and depending on what color that spot is, do different funtions<{POST_SNAPBACK}>k good that someone understands me but.... i have no clue where to start this script :scan someone give me a basic outline i can try to fix up my self Edited January 24, 2005 by lilandywandy Link to comment Share on other sites More sharing options...
Wolvereness Posted January 25, 2005 Share Posted January 25, 2005 Explain more on what you need in the big picture. Like give a few #s and what to do on each. Can't make an outline of something you don't have. Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote] Link to comment Share on other sites More sharing options...
lilandywandy Posted January 25, 2005 Author Share Posted January 25, 2005 ok im working on this simple program for a rpg game its going to be mining and it gets ores once in a while. im gonna get the coord of the box which will hold the ores there are 2 different types of ores , yelow ones and brown ones and somtimes u get rare ones which are orange. i want the program to sense what color the box is so that if the ore is yelow or brown it will throw it away Link to comment Share on other sites More sharing options...
Wolvereness Posted January 25, 2005 Share Posted January 25, 2005 Screen shot with all 3 and the exact spots to click in comparison to the ore. Send it in PM to me if you don't want lots of posts to filter. Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now