Sign in to follow this  
Followers 0
jonathan2133

problem imbedding If statments in loops

5 posts in this topic

this si the code im working with thats the problem:

do

sleep("100")

$var = PixelGetColor( 55 , 104 )

$ok = PidelGetColor( 541 , 429)

If $ok = 15526360 then

mouseclick("left", 541, 429)

Else

send("1")

end if

until $var > 3238597

It returns an error until statment with no do statment, did the same for while statments too. Is my If statment wrong or is this a problem that needs to be addressed? I will attack the whole file if u need it.

This was originally a healtrainer for a game but its still really basic

Thanks for any help

Jonathan2133

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

end if must be EndIf

AND PidelGetColor probably has to be PixelGetColor ......

:P

No BUG but Support issue ... Moved to Support forum..

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

end if must be EndIf

AND PidelGetColor probably has to be PixelGetColor ......

:P

No BUG but Support issue ... Moved to Support forum..

maybe he wanted to know what color the pidel was? sorry, too many energy drinks today so i'm getting a little goofy...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

maybe he wanted to know what color the pidel was? sorry, too many energy drinks today so i'm getting a little goofy...

No i wanted to know why it was messin up on me... many thanks sorry its in the wrong spot. Thanks for the help :P

Share this post


Link to post
Share on other sites

No i wanted to know why it was messin up on me... many thanks sorry its in the wrong spot. Thanks for the help :P

it's cool man, you're not the first person to do it and probably won't be the last. welcome to the forums.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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