lilandywandy Posted November 12, 2005 Share Posted November 12, 2005 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 Link to comment Share on other sites More sharing options...
Trystian Posted November 12, 2005 Share Posted November 12, 2005 I would put it after the HotKeySet, but you may not get the results you expect when running it at 5. ProcessSetPriority(@AutoITPID,4) <-- would be a "safer" alternative. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now