Sign in to follow this  
Followers 0
lilandywandy

How can i do this?

7 posts in this topic

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

Share this post


Link to post
Share on other sites



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

#3 ·  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

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
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

Share this post


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


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

#6 ·  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

Share this post


Link to post
Share on other sites

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.


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

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