Sign in to follow this  
Followers 0
lilandywandy

Question...

3 posts in this topic

While 1

If PixelGetColor(120,777) = Dec("7b7984") Then

Sleep(500)

Send("{F1}")

Sleep(7000)

Send("{F2}")

Sleep(200)

Send("{F1}")

Sleep(7000)

Send("{F2}")

Send("{F2}")

Sleep(200)

Send("{F2}")

EndIf

If PixelGetColor(661,432) = Dec("e7dfe7") Then

Sleep(2000)

how can i make script terminate If PixelGetColor(661,432) = Dec("e7dfe7") Then

Share this post


Link to post
Share on other sites



how can i make script terminate If PixelGetColor(661,432) = Dec("e7dfe7") Then

<{POST_SNAPBACK}>

If PixelGetColor(661,432) = Dec("e7dfe7") Then exit

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Using only While 1 when you need a exit condition is pretty stupid...

While PixelGetColor(661,432) <> 0xe7dfe7
   If PixelGetColor(120,777) = 0x7b7984 Then    
      Sleep(500)
      Send("{F1}")
      Sleep(7000)
      Send("{F2}")
      Sleep(200)
      Send("{F1}")
      Sleep(7000)
      Send("{F2}")
      Send("{F2}")
      Sleep(200)
      Send("{F2}")
   EndIf
   Sleep(1)
Wend

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