Jump to content
Sign in to follow this  
anphat1995

I meet loop problem

Recommended Posts

Hello guys! I have a problem with loop in AutoIT.

I want to run this code for 2 minute. Who can help me with this problem? I'm a newbie.

Code:

While 1

Local $x=0, $y=o

Local $search=_ImageSearch(@ScriptDir&'\saferespawn.bmp',1,$x,$y,0)

If $search=1 then MouseClick('main',$x,$y)

Endif

Sleep(120000)

WEnd

Sorry for my bad english

Thanks a lot

Share this post


Link to post
Share on other sites

@ATR, generally when a Moderator has entered a thread, it means you need to butt out while they ascertain the legitimacy of the question...


"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
3 minutes ago, JLogan3o13 said:

@ATR, generally when a Moderator has entered a thread, it means you need to butt out while they ascertain the legitimacy of the question...

OK ! :) I took note ! sorry

Share this post


Link to post
Share on other sites

@anphat1995 That is what I figured. It appears you strolled right past our forum rules on your way in. I suggest you take a look at them now, especially the section on game automation, and you will see why this thread is now locked. You will not get any assistance on this subject.


"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
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...