Sign in to follow this  
Followers 0
lilandywandy

Help please

2 posts in this topic

where should i put SetProccesPriority(@autoitPID,5) to priority the pixelsearch?

HotKeySet("{ESC}", "MyExit")

WinActivate("[Conquer]")

While 1 ; repeat statements over

; look for monster and attack him

$CoordMonster = PixelSearch ( 0,0,800,800,0xbd0000,25 )

If Not @error Then

MouseClick ( "Right" , $CoordMonster[0], $CoordMonster[1] , 1,1)

EndIf

; if mana is empty replenish it

If PixelGetColor( 119, 780) = (0x94929c) Then

For $i = 3 to $i = 1 Step -1

Send("{F7}")

Sleep(2000)

Next

EndIf

Wend

Func MyExit()

Exit

EndFunc

Share this post


Link to post
Share on other sites



I would put it after the HotKeySet, but you may not get the results you expect when running it at 5. B)

ProcessSetPriority(@AutoITPID,4) <-- would be a "safer" alternative.

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