Jump to content
Sign in to follow this  
homie

If...Then... questions

Recommended Posts

homie

so here is a bit of my script... I wrote another script to save all values to notepad, and copied them in to insure accuracy.

basically I only want it to click if the pixelgetcolor variable is different... but my problem is, is that it is clicking every spot, even tho they are =.... I double checked with using them in a different script, and they are coming back that they are equal.

$pixel1 = PixelGetColor (602, 290 )
If $pixel1 <> 16777215 Then MouseClick ("left", 602, 290 )
$pixel2 = PixelGetColor (604, 290 )
If $pixel2 <> 14333068 Then MouseClick ("left", 604, 290 )
$pixel3 = PixelGetColor (606, 290 )
If $pixel3 <> 9211020 Then MouseClick ("left", 606, 290 )
$pixel4 = PixelGetColor (608, 290 )
If $pixel4 <> 9211020 Then MouseClick ("left", 608, 290 )
$pixel5 = PixelGetColor (610, 290 )
If $pixel5 <> 9211020 Then MouseClick ("left", 610, 290 )
$pixel6 = PixelGetColor (612, 290 )
If $pixel6 <> 9211020 Then MouseClick ("left", 612, 290 )
$pixel7 = PixelGetColor (614, 290 )
If $pixel7 <> 9211020 Then MouseClick ("left", 614, 290 )
$pixel8 = PixelGetColor (616, 290 )
If $pixel8 <> 9216200 Then MouseClick ("left", 616, 290 )
$pixel9 = PixelGetColor (618, 290 )
If $pixel9 <> 10521740 Then MouseClick ("left", 618, 290 )
$pixel10 = PixelGetColor (620, 290 )
If $pixel10 <> 9211020 Then MouseClick ("left", 620, 290 )
$killed = PixelGetColor( 470 , 278 )
if $killed = 8092539 then return

Share this post


Link to post
Share on other sites
bo8ster

bumping within 24 hours will get you in trouble.

I suggest you try searching, may ppl post this kind of issue.


Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

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  

×