Jump to content

Recommended Posts

Posted (edited)

While 1
   If PixeGetColor(323,323) <> Dec(0xFFFFFF) Then
      $Timer = TimerInt()
      While PixeGetColor(323,323) <> Dec(0xFFFFFF)
         If TimerDiff($Timer) > 120000 Then Send("{ESC"})
      Wend
   EndIf
Wend

Or...

$Temp = 0

While 1
   If PixeGetColor(323,323) <> Dec(0xFFFFFF) Then
      If $Temp = 0 Then
         $Timer = TimerInt()
      EndIf
      $Temp = 1
      If TimerDiff($Timer) > 120000 Then Send("{ESC"})
   Else
      $Temp = 0
   EndIf
Wend
Edited by Burrup

qq

Posted

HotKeySet("{PAUSE}", "mExit")

MouseClick("left", 568, 23, 1)

While 1

If PixelGetColor(368,707) <> Dec(0x00f742) Then

$Timer = TimerInt()

While PixelGetColor(323,323) <> Dec(0x00f742)

If TimerDiff($Timer) > 10000 Then Send("{ESC}")

Wend

EndIf

Wend

Func mExit()

Exit

EndFunc

i seem to get a timer error

Posted

Most probably because your an idiot. TimerInt() should be TimerInit(). And seeing as I actually wrote this script in my web browser without looking at the help file to see correct spelling etc, I'm not surprised.

qq

Posted (edited)

the program seems to run but when i flash the pixel with the color, it still presses esc after the time

so ya, even when the pixel color is active, the prgram only turns on for the 2 mins

Edited by lilandywandy
Posted

This is the last time I am replying because you are annoying me. Try the second alternative I posted, you should be more then grateful that me and w0uter actually bothered to assist you.

qq

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...