Jump to content

Need some help with looping.


Recommended Posts

[/code]
HotKeySet("{ESC}","Terminate")
Func Terminate()
    Exit 0
EndFunc
While 1; <-------while function
$cords = PixelSearch(455,392,628,496,0xcccccc)
If not @error then
    MouseClickDrag("left", $cords[0], $cords[1],842,258,10000000000)
    EndIf
WEnd; <--------- repeat while function
[code]

use the while functions to loop its the easiest loop function out their! :(

ps:that picture isnt very helpful use words plz :)

Edited by TnTProductions

"FREEDOM is not FREE""Its a good thing war is so terrible, or we grow too fond of it" -Robert E. Lee[quote]Firestrom: global $warming = False[/quote]My scripts:Desktop Cleaner---->Total Downloads:167;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111111;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;;;;11;;;;;;"a wise man once said why use your skills when we have technology"

Link to comment
Share on other sites

Good job eating bandwith. Why put a huge ass picture that explains nothing?

Is this what your looking for.........?

HotKeySet("{INSERT}", "Hit")
$i = 0
While 1
Sleep(50)
WEnd

Func Hit()
$i=$i+1
Send("{delete}")
If $i=20 Then
Sleep(20*60000)
Send("{delete}")
$i=0
EndFunc
I apologize for the pic being oversized. I figured it may help explain.

and yes that looks like it may work. thanks

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