kudl131 0 Posted December 3, 2020 Hi, i need some help. I need a example for a script that when i press Z then the switch will turn on and start the loop that clicking at x0 y 50 when isarray $test else of $test not isarray the loop will wait for $test isarray. Then if i press Z+X the loop will turn off. Thanks for reading and help! Share this post Link to post Share on other sites
Danp2 910 Posted December 3, 2020 Hi... your request is fairly vague. Can you show us what code you've written thus far? Also, what program are you attempting to automate? [UDF] WebDriver Latest version Wiki FAQs Share this post Link to post Share on other sites
kudl131 0 Posted December 3, 2020 i cant use my computer now so i jusst can tell you about it : $test=Pixelsearch(X Y COLOR) while isarray $test mouseclick(left,x,y,1) mouseclick(left,x,y,1) wend Im newbie so i dont know how to use else on while command : when $test not isarray then mouseclick(left,x,y,1) and then do the samp with loop Yes, im making magikarp catcher script to catch magikarp Share this post Link to post Share on other sites
JLogan3o13 1,639 Posted December 3, 2020 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team "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! Share this post Link to post Share on other sites