Jump to content
Sign in to follow this  
lilandywandy

How can i do this?

Recommended Posts

lilandywandy

if ( 323,323 ) has not been FFFFFF for 2 minutes, then press ESC

Share this post


Link to post
Share on other sites
w0uter

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

Share this post


Link to post
Share on other sites
buzz44

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

Share this post


Link to post
Share on other sites
lilandywandy

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

Share this post


Link to post
Share on other sites
buzz44

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

Share this post


Link to post
Share on other sites
lilandywandy

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

Share this post


Link to post
Share on other sites
buzz44

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

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  

×