Jump to content
Sign in to follow this  
lilandywandy

how can i do this?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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

<{POST_SNAPBACK}>

k good that someone understands me but.... i have no clue where to start this script :s

can someone give me a basic outline i can try to fix up my self

Edited by lilandywandy

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...