Sign in to follow this  
Followers 0
Browen

AutoIt Help (timer within this script)

2 posts in this topic

Basically, I'm using this, its simple, and i'm a noob, but it works which is best :whistle:

I have found a way to edit the mobs i want to fight and make their texture just a red block.. so the next thing is, I want to enter in there a way to press my heal button (either F4 key, or click there, manually) every 20secs (I know a hpcheck would be too advanced at this moment)

can anyone assit?

heres what i'm uding

HotKeySet("{NumPad7}", "Start")
HotKeySet("{NumPad8}", "Pause")
HotKeySet("{NumPad9}", "Leave")
While 1
Sleep(1000)
WEnd
Func Start()

While 1
$Coord = PixelSearch(391, 326, 1164, 740, 0xFF0000, 20); <--- Searches For Creature 
  If Not @error Then
   MouseClick("Left", $Coord[0], $Coord[1], 1, 0); <--- Casts Spell On Creature
    Sleep(10000) 
       EndIf
      WEnd

EndFunc
Func Pause()
While 1
Sleep(1)
WEnd
EndFunc
Func Leave()
Exit
EndFunc

PS: thx to the CO autoit guy

Share this post


Link to post
Share on other sites



can anyone help, all I want it to do is have another function call that presses F4 every 15secs OR clicks on a certain spot

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