Jump to content

Pixel Editing..now Wat?


Recommended Posts

RANDOM EXAMPLE..

I want my autoit script to find the color RED between coords 100,100 and 200,200

now, my problem is WHAT HAPPENS NEXT?

Say I want it to:

If it reads the color RED in there, I want it to Left click on that red pixel

If it doesn't, I want it to play a loop() funtion.. so it cn try again with delay like..

loop()

Send(10000) ;10 seconds

My main problem is how do I do the part that I underlined above?

If posilbe, I would appreciate help or a smaple script.

THANKS!

Link to comment
Share on other sites

check out pixelsearch and then @error and mouseclick lol i would write on but there are so many on the forum im scared of copyright infringment

Lol..Ill search a bbit more, meanwhile, if anyone else can help me, I really appreciate it,

THANKS

Link to comment
Share on other sites

  • Moderators

Lol..Ill search a bbit more, meanwhile, if anyone else can help me, I really appreciate it,

THANKS

Is using the search function and typing in "PixelSearch" that difficult?

http://www.autoitscript.com/forum/index.ph...ndpost&p=180413

That's an exact example of what you need, you just need to replace the color with whatever color you want. (use the AutoInfo tool to decide what the hex color is you want.)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Is using the search function and typing in "PixelSearch" that difficult?

http://www.autoitscript.com/forum/index.ph...ndpost&p=180413

That's an exact example of what you need, you just need to replace the color with whatever color you want. (use the AutoInfo tool to decide what the hex color is you want.)

Wow, much easier then I htought, thanks

Link to comment
Share on other sites

  • Moderators

Wow, much easier then I htought, thanks

Amazing what using the Search function can do huh... :)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Ok..works great..but I have another similar question..

Say..

I want it to see if cordinates 50,50 was red, blue, green

And if red it would Press F1

If blue it would start script over

If Green it would skip to a part in the script that I set it to.

Can you please help me with a code for this..or for some of this...

I dont care about the colors, you don't have to find the color code, jsut type in Color 1 where uit should go and stuff..

Thanks so much for your help and time!

Link to comment
Share on other sites

Ok..works great..but I have another similar question..

Say..

I want it to see if cordinates 50,50 was red, blue, green

And if red it would Press F1

If blue it would start script over

If Green it would skip to a part in the script that I set it to.

Can you please help me with a code for this..or for some of this...

I dont care about the colors, you don't have to find the color code, jsut type in Color 1 where uit should go and stuff..

Thanks so much for your help and time!

looks like Someone's looking for a game bot :)

unfortunatley, i love writing pixel codes

While 1
          $var = Pixelgetcolor(50,50)
     If Hex($var) = *hex code for red* then
          Send("{F1}");I'm not sure if you can send func keys, but if you can, this is my guess
     Endif
     If Hex($var) = *Hex for green* then
        ;Type part of script here
     Endif
     If Hex($var) = *hex for blue* then
          Continueloop(1)
     Endif
Wend

Try something like that (I at least gave you something to figure out on your own(hex colors))

You could use a select/case statement here, but its up to you

Thanks so much for your help and time!

Your welcome

Edit: just noticed this

check out pixelsearch and then @error and mouseclick lol i would write on but there are so many on the forum im scared of copyright infringment

lol

QFT

Edited by Paulie
Link to comment
Share on other sites

looks like Someone's looking for a game bot :)

unfortunatley, i love writing pixel codes

While 1
          $var = Pixelgetcolor(50,50)
     If Hex($var) = *hex code for red* then
          Send("{F1}");I'm not sure if you can send func keys, but if you can, this is my guess
     Endif
     If Hex($var) = *Hex for green* then
    ;Type part of script here
     Endif
     If Hex($var) = *hex for blue* then
          Continueloop(1)
     Endif
Wend

Try something like that (I at least gave you something to figure out on your own(hex colors))

You could use a select/case statement here, but its up to you

Your welcome

Edit: just noticed this

lol

QFT

TY SO MUCH!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...