Jump to content

Do..Until how do i put it in in this script?


 Share

Recommended Posts

While 1 ;Main loop
    Do
        $color = PixelGetColor(1, 1) ;Waits for (1, 1) to be 0xFF0000
    Until $color = OxFF0000
Sleep(300000) ;Sleeps for 300000ms when $color = 0xFF0000
If PixelGetColor(1, 1) = 0xFF0000 Then Send ("X") ;After the sleep it checks to see if (1, 1) is 0xFF0000. If it is it sends X and if it isn't it waits for $color to = 0xFF0000
WEnd

test

Link to comment
Share on other sites

Please do not double post.

There have been so many double posts recently that I'm inclined to think that is it has more to do with the forum's response time (and the OP's impatience) than the intent to make two identical posts.

[size="1"][font="Arial"].[u].[/u][/font][/size]

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...