Jump to content

Question...


Recommended Posts

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

Link to comment
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 *

Link to comment
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
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...