Jump to content

How can i do this?


Recommended Posts

step 1. search the manual.

step 2. search the manual.

step 3. ask SPECIFIC questions about unclear things.

but since your probly to lazy search long. here are some keywords:

pixelGetColor

Sleep

Send

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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