Jump to content

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
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.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...