Sign in to follow this  
Followers 0
Regency

PixelGetColor() Works sometimes, why not always

1 post in this topic

#1 ·  Posted (edited)

I figured out how to make it look for a color and compare it, but why wont it always find it, there is no reason for it to not find the correct color thats out of place, anyone figure out why it gets messed up? i am racking my brain rewrote it 2 times, and got same results...

$1Color = PixelGetColor(418, 247)
    $2Color = PixelGetColor(518, 247)
    $3Color = PixelGetColor(618, 247)
    ;First Line
    $4Color = PixelGetColor(418, 347)
    $5Color = PixelGetColor(518, 347)
    $6Color = PixelGetColor(618, 347)
    ;Second Line
    $7Color = PixelGetColor(418, 447)
    $8Color = PixelGetColor(518, 447)
    $9Color = PixelGetColor(618, 447)oÝ÷ Ù«­¢+ÙÕ¹MÉ¥ÁÑ
¡¬ ¤(%%ÀÌØìÅ
½±½ÈôÀÌØìÉ
½±½ÈQ¡¸íAÍÌ
¡¬($%Q¡¥É
¡¬ ¤(%±Í%ÀÌØìÅ
½±½È±ÐìÐìÀÌØìÉ
½±½ÈQ¡¸ì¥±¥Ñ¡È=¹½ÈQݼ°
¡­%¸9áÐÕ¹($%Q¡¥É
¡­U¹ÅÕ° ¤(%¹%)¹Õ¹ìôôÐíMÉ¥ÁÑ
¡¬()Õ¹Q¡¥É
¡­U¹ÅÕ° ¤(%%ÀÌØìÅ
½±½È±ÐìÐìÀÌØìÍ
½±½ÈQ¡¸í ÕÑѽ¸=¹   ¥¹=($$ÀÌØí½MÕµ¥Ðô}=©    å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíÙ±
É¥µÌÀÌØíѸÄÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%}%EեРÀÌØí
É¥µÌ¤(%±Í%ÀÌØìÉ
½±½È±ÐìÐìÀÌØìÍ
½±½ÈQ¡¸í ÕÑѽ¸Qݼ ¥¹=($$ÀÌØí½MÕµ¥Ðô}=©    å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíÙ±
É¥µÌÀÌØíѸÈÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%}%EեРÀÌØí
É¥µÌ¤(%¹%)¹Õ¹ìôôÐíQ¡¥É
¡­U¹ÅÕ°()Õ¹Q¡¥É
¡¬ ¤(%%ÀÌØìÅ
½±½ÈôÀÌØìÍ
½±½ÈQ¡¸($%M½¹1¥¹ ¤($%M±À ÄÀ¤(%±Í%ÀÌØìÅ
½±½È±ÐìÐìÀÌØìÍ
½±½ÈQ¡¸($$ÀÌØí½MÕµ¥Ðô}=©    å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíÙ±
É¥µÌÀÌØíѸÌÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%}%EեРÀÌØí
É¥µÌ¤(%¹%)¹Õ¹ìôôÐíQ¡¥É
¡¬()Õ¹M½¹1¥¹ ¤(%%ÀÌØìÑ
½±½ÈôÀÌØìÕ
½±½ÈQ¡¸íAÍÌ
¡¬($%M½¹1¥¹1ÍÑ
¡¬ ¤(%±Í%ÀÌØìÑ
½±½È±ÐìÐìÀÌØìÕ
½±½ÈQ¡¸ì¥±¥Ñ¡È=¹½ÈQݼ°
¡­%¸9áÐÕ¹($%M½¹1¥¹U¹ÅÕ° ¤(%¹%)¹Õ¹ìôôÐíM½¹1¥¹()Õ¹M½¹1¥¹U¹ÅÕ° ¤(%%ÀÌØìÑ
½±½È±ÐìÐìÀÌØìÙ
½±½ÈQ¡¸í ÕÑѽ¸=¹   ¥¹=($$ÀÌØí½MÕµ¥Ðô}=©    å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíÙ±
É¥µÌÀÌØíѸÐÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%}%EեРÀÌØí
É¥µÌ¤(%±Í%ÀÌØìÕ
½±½È±ÐìÐìÀÌØìÙ
½±½ÈQ¡¸í ÕÑѽ¸Qݼ ¥¹=($$ÀÌØí½MÕµ¥Ðô}=©    å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíÙ±
É¥µÌÀÌØíѸÔÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%}%EեРÀÌØí
É¥µÌ¤(%¹%)¹Õ¹ìôôÐíM½¹1¥¹U¹ÅÕ°()Õ¹M½¹1¥¹1ÍÑ
¡¬ ¤(%%ÀÌØìÑ
½±½ÈôÀÌØìÙ
½±½ÈQ¡¸($%1ÍÑ1¥¹ ¤($%M±À ÄÀ¤(%±Í%ÀÌØìÑ
½±½È±ÐìÐìÀÌØìÙ
½±½ÈQ¡¸($$ÀÌØí½MÕµ¥Ðô}=©    å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíÙ±
É¥µÌÀÌØíѸØÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%}%EեРÀÌØí
É¥µÌ¤(%¹%)¹Õ¹ìôôÐíM½¹1¥¹1ÍÑ
¡¬()Õ¹1ÍÑ1¥¹ ¤(%%ÀÌØìÝ
½±½ÈôÀÌØìá
½±½ÈQ¡¸íAÍÌ
¡¬($%1ÍÑ1¥¹1ÍÑ
¡¬ ¤(%±Í%ÀÌØìÝ
½±½È±ÐìÐìÀÌØìá
½±½ÈQ¡¸ì¥±¥Ñ¡È=¹½ÈQݼ°
¡­%¸9áÐÕ¹($%1ÍÑ1¥¹U¹ÅÕ° ¤(%¹%)¹Õ¹ìôôÐí1ÍÑ1¥¹()Õ¹1ÍÑ1¥¹U¹ÅÕ° ¤(%%ÀÌØìÝ
½±½È±ÐìÐìÀÌØìå
½±½ÈQ¡¸í ÕÑѽ¸=¹   ¥¹=($$ÀÌØí½MÕµ¥Ðô}=©    å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíÙ±
É¥µÌÀÌØíѸÜÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%}%EեРÀÌØí
É¥µÌ¤(%±Í%ÀÌØìá
½±½È±ÐìÐìÀÌØìå
½±½ÈQ¡¸í ÕÑѽ¸Qݼ ¥¹=($$ÀÌØí½MÕµ¥Ðô}=©    å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíÙ±
É¥µÌÀÌØíѸàÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%}%EեРÀÌØí
É¥µÌ¤(%¹%)¹Õ¹ìôôÐí1ÍÑ1¥¹U¹ÅÕ°()Õ¹1ÍÑ1¥¹1ÍÑ
¡¬ ¤(%%ÀÌØìÝ
½±½ÈôÀÌØìå
½±½ÈQ¡¸($%M±À ÄÀ¤($%}%Ñ¥½¸ ÀÌØí
É¥µÌ°ÅÕ½Ðí    ¬ÅÕ½Ðì¤($$ÀÌØí½I¥¼ô}=©   å% ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÁ}5¥¹A
½¹Ñ¹Ñ}ɱ
É¥µÍ|àÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½I¥¼°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($$ÀÌØí½MÕµ¥Ðô}=©   å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíѹ
½µµ¥ÐÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%MÉ¥ÁÑ
¡¬ ¤(%±Í%ÀÌØìÝ
½±½È±ÐìÐìÀÌØìå
½±½ÈQ¡¸($$ÀÌØí½MÕµ¥Ðô}=©    å9µ ÀÌØí
É¥µÌ°ÅÕ½ÐíÑ°ÀÀÀÌØí5¥¹A
½¹Ñ¹ÐÀÌØíÙ±
É¥µÌÀÌØíѸäÅÕ½Ðì¤($%}%Ñ¥½¸ ÀÌØí½MÕµ¥Ð°ÅÕ½Ðí±¥¬ÅÕ½Ðì¤($%}%1½]¥Ð ÀÌØí
É¥µÌ¤($%}%EեРÀÌØí
É¥µÌ¤(%¹%)¹Õ¹ìôôÐí1ÍÑ1¥¹1ÍÑ
¡¬

Ignor the $gta and $crimes they are in the gui, only coppied the script part that was giving me problems...

sometimes it find the correct one thats out of place, others it clicks the wrong one... anyone think they know why?

Edited by Regency

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  
Followers 0