Jump to content

On and off with hotkey and the loop - (Locked)


kudl131
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

  • Moderators

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!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...