Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:12

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Need help with loop

Discussion on Need help with loop within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: May 2007
Posts: 1,166
Received Thanks: 82
Need help with loop

hey guys.

I made a script and a loop.

Now i want to add a mouse click every time 5 times.

Anyone know or could help me with this?
DarkTwilight is offline  
Old 06/16/2010, 15:45   #2
 
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
You might get familiar with AdLibRegister() / AdLibUnregister() even if this is a real bad programming style
For sth. better you should try to use Timer and an If-query executed in the loop.
.nAno is offline  
Old 06/16/2010, 16:38   #3


 
Jeoni's Avatar
 
elite*gold: 966
Join Date: Apr 2010
Posts: 1,105
Received Thanks: 681
Try this:
PHP Code:
While 1
MouseClick
("left")
Sleep(5000)
WEnd 
Should work
Jeoni is offline  
Old 06/16/2010, 16:46   #4
 
elite*gold: 20
Join Date: May 2007
Posts: 1,166
Received Thanks: 82
Quote:
Originally Posted by Jeoni View Post
Try this:
PHP Code:
While 1
MouseClick
("left")
Sleep(5000)
WEnd 
Should work
Hmm thanks!

So, If im getting this right ( I Started today so correct me if i am wrong! ^^ )

I add this at the bottom of my script as While 1.

And every 5 seconds it would click the position i would give? ( Ofc at my script i would change the time lol )

So my script will continue talking and then every 5-10 minutes it will click ?

Thanks again!
DarkTwilight is offline  
Old 06/16/2010, 16:49   #5
 
bassbanane's Avatar
 
elite*gold: 116
Join Date: Oct 2007
Posts: 677
Received Thanks: 248
not 5-10 minutes.
5000 means 5000 milliseconds so 5 seconds.
5min would be 300000 milliseconds so it would be sleep(300000)
bassbanane is offline  
Old 06/16/2010, 16:57   #6
 
elite*gold: 20
Join Date: May 2007
Posts: 1,166
Received Thanks: 82
Quote:
Originally Posted by bassbanane View Post
not 5-10 minutes.
5000 means 5000 milliseconds so 5 seconds.
5min would be 300000 milliseconds so it would be sleep(300000)
i know i was just giving an example =D,

But i do i put

While 1
MouseClick ( "Left" [, 658, 505 [, 2 ]])
Sleep(25000)
WEnd

At the bottom of my script? xD sorry for my noob questionz.
DarkTwilight is offline  
Reply


Similar Threads Similar Threads
Bot can loop?
05/19/2010 - SRO Private Server - 1 Replies
the bt work great but he can loop cuse i remember i loop only with the addon oh and another thing if he can loop he can loop in cave? plz answer me tnx:handsdown:
DB-BOT No More loop
05/13/2010 - SRO Private Server - 1 Replies
when i got the bot it worked fine like 5 hours until i want to change bot spawn from there the bot dont loop anymore i try anthor day to go in with bot and then he go next blacksmith or storage and dont open them or he just go couple steps and the stuck in objects i use the addon bot i think is the source of the problem is there any other way to loop without the addon? plz help me i realy want to play with this bot and anthor more thing anyone know when the crack of new bot is relesd and if...
Help me for SRO-DB Bot Loop
05/02/2010 - SRO Private Server - 1 Replies
when you buy the potions I get an error in the bot sorry no speak ingles use traductor :D
Agbot loop dosnt loop
10/18/2008 - Silkroad Online - 1 Replies
my agbot after i tele will go through the 20 sec wait then says in bot concle feature not available yet feature not available yet idk whats wrong
Can someone help me with loop?
10/12/2008 - Silkroad Online - 5 Replies
erm i kinda have a problem.. and i don't know how to solf it ...erm..i have agBot and everything but i have no idea how to make a loop and i try to understand but i just can't ... im too noobish to understand it very well.. could someone help me make a loop? i would much appreciate that :handsdown:



All times are GMT +1. The time now is 17:15.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.