redman12 Posted March 9, 2019 Share Posted March 9, 2019 okay so i was using pixel search in a do loop, but once the part with that involves the pixel command is done and move on to the next command, the next pixel command gives and error, is it coz im using the same variable for both? if so is there a way around using pixle command without having to make a ton of variables for each one. Link to comment Share on other sites More sharing options...
Somerset Posted March 9, 2019 Share Posted March 9, 2019 Show some code, for proper help. Link to comment Share on other sites More sharing options...
redman12 Posted March 9, 2019 Author Share Posted March 9, 2019 (edited) HotKeySet("{F8}", "myExit") $x = WinActivate("edited") Local $bones = 1 Global $pix = True MsgBox(0,"","start") For $a = 1 To 25 FindPix() Next myExit() Func FindFish() if $bones < 25 Then $pix = PixelSearch(-1360, 21, -821, 541, 0xC88EDD, 5) Sleep(450) MouseClick("right", $pix[0], $pix[1],1,1) Sleep (850) MouseClick("left", $pix[0], $pix[1] + 25,1,1) Sleep(2000) EndIf EndFunc Func myExit() MsgBox(0,"Exiting", "ecit") Exit EndFunc thats the part thats stuffing up Edited March 10, 2019 by redman12 Link to comment Share on other sites More sharing options...
Earthshine Posted March 10, 2019 Share Posted March 10, 2019 Post the code here. Not an image. My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Developers Jos Posted March 10, 2019 Developers Share Posted March 10, 2019 "attack npc"? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 10, 2019 Developers Share Posted March 10, 2019 @redman12, I see you have seen my question so would appreciate an answer! Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
redman12 Posted March 10, 2019 Author Share Posted March 10, 2019 no its not to attack npc Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 10, 2019 Share Posted March 10, 2019 (edited) @redman12 Edit the post after a Moderator/Developer has seen the rest of all the others functions/variables names (FindFish, Bones...), it's definitely not so smart from you Edited March 10, 2019 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 11, 2019 Moderators Share Posted March 11, 2019 (edited) 20 hours ago, FrancescoDiMuro said: @redman12 Edit the post after a Moderator/Developer has seen the rest of all the others functions/variables names (FindFish, Bones...), it's definitely not so smart from you How many times, exactly, do you need to be personally reminded to stay out of a thread in which a Mod is working? Do you really believe your little comments add anything to the discussion? Edit: When your next comment leads to a vacation from the forum, we'll see if your response is the same Edited March 11, 2019 by JLogan3o13 FrancescoDiMuro 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts