Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 08:02

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

Advertisement



How to create your own bots/macros with AutoIt

Discussion on How to create your own bots/macros with AutoIt within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old 10/10/2012, 18:26   #136
 
elite*gold: 0
Join Date: Jul 2011
Posts: 82
Received Thanks: 12
Hum, I don't understand.

So you say that using a timer, is the same as using a sleep in a loop, because it will block the loop?

I made a test, try each code and you'll see that it isn't the same :

PHP Code:
loop with a Sleep in it
Global $i

While 1
    $i
+=1
    ToolTip
("Number : " $i,5,0)
    
Sleep(5000)
WEnd

loop using a timer in it
Global $i$begin
$begin 
TimerInit()
While 
1
    $i
+=1
    ToolTip
("Number : " $i,5,0)
    If 
TimerDiff($begin) >= 5000 Then
        
your function to lunch after waiting 28 secs
        $begin 
TimerInit()
    EndIf
    
Sleep(10) ; to avoid a UC overloaded
WEnd 
itachi26 is offline  
Old 10/10/2012, 21:55   #137
 
SaM.ThE.MaN's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 427
Quote:
Originally Posted by itachi26 View Post
Hum, I don't understand.

So you say that using a timer, is the same as using a sleep in a loop, because it will block the loop?

I made a test, try each code and you'll see that it isn't the same :

PHP Code:
loop with a Sleep in it
Global $i

While 1
    $i
+=1
    ToolTip
("Number : " $i,5,0)
    
Sleep(5000)
WEnd

loop using a timer in it
Global $i$begin
$begin 
TimerInit()
While 
1
    $i
+=1
    ToolTip
("Number : " $i,5,0)
    If 
TimerDiff($begin) >= 5000 Then
        
your function to lunch after waiting 28 secs
        $begin 
TimerInit()
    EndIf
    
Sleep(10) ; to avoid a UC overloaded
WEnd 
Not really , That's not what i mean. What am saying is when your in a loop , your script will be frozen.
SaM.ThE.MaN is offline  
Old 10/13/2012, 00:47   #138
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by SaM.ThE.MaN View Post
Not really , That's not what i mean. What am saying is when your in a loop , your script will be frozen.
I've never used AutoIT, but is there an option for multithreading? Because that's what you would need then!
I don't have a username is offline  
Old 10/13/2012, 09:09   #139
 
elite*gold: 0
Join Date: Jul 2011
Posts: 82
Received Thanks: 12
Ah I see... Well, is multi-threading meaning manage multiple-loops in the same time? If then, I heard that AutoIt wasn't able to do that. You can imitate a little bit with AdlibRegister, but never went so far...
itachi26 is offline  
Old 10/13/2012, 09:16   #140
 
SaM.ThE.MaN's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 427
Quote:
Originally Posted by I don't have a username View Post
I've never used AutoIT, but is there an option for multithreading? Because that's what you would need then!
mhmmmmm,

To make this as simple as possible , your script wouldnt exactly stop , it would just be frozen.
For instance : You have a GUI , and your script has a loop in it , if you run your script and the loop starts , the buttons in your GUI wouldnt respond , they would just stay there frozen until your loop stops .Just incase you're wondering, There are workarounds for this.

Quote:
Originally Posted by itachi26 View Post
Ah I see... Well, is multi-threading meaning manage multiple-loops in the same time? If then, I heard that AutoIt wasn't able to do that. You can imitate a little bit with AdlibRegister, but never went so far...
That is correct , Multithreading can be done with Adlib.
SaM.ThE.MaN is offline  
Old 10/15/2012, 09:55   #141
 
elite*gold: 0
Join Date: Oct 2012
Posts: 93
Received Thanks: 34
nice tut bud
topsropvp is offline  
Old 01/12/2013, 22:56   #142
 
elite*gold: 0
Join Date: Jul 2006
Posts: 88
Received Thanks: 0
how can MouseClick in login screen and detect login id text box and give it sting
ace_heart is offline  
Old 01/18/2013, 03:27   #143
 
A7MED7SSEINKAME's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 29
Received Thanks: 4
that's very nice good work
A7MED7SSEINKAME is offline  
Old 01/27/2013, 21:31   #144
 
elite*gold: 0
Join Date: Feb 2009
Posts: 920
Received Thanks: 3,514
Quote:
Originally Posted by ace_heart View Post
how can MouseClick in login screen and detect login id text box and give it sting
I don't think thats possible, but i made a work around for it;

Code:
Local $clientF = FileSelectFolder("Conquer Folder.", "X:\Conquer Online 2.0")
Local $client = FileOpenDialog("", $clientF &"\", "Executeables (*.exe)", 1,"conquer.exe")
Local $user = InputBox("Username","Enter Your Username:","")
$user1 = " blacknull " & $user
$space = " "
Local $pass = InputBox("Password","Enter Your Password:", "","*")
ShellExecute($client, $user1 & $space & $pass)
This code will simply run the Conquer.exe with blacknull and username/password parameters which will put the username and pass right where they belong the moment the client starts up.
m7mdxlife is offline  
Reply


Similar Threads Similar Threads
[GUIDE] How to create Scripts/bots with AutoIT
09/22/2010 - Tutorials - 6 Replies
for all who want to learn something or create bots for browsergames, mmorpgs and other games download Autoit here: http://www.autoitscript.com/cgi-bin/getfile.pl?au toit3/autoit-v3-setup.exe Now run the Scite Script Editor this is where you type in your code, let check your code if errors are in it and compile it to executable exe file. the first thing you need are the coordinates of your mouse to find locations on the screen, like skill buttons, status bars, or just positions which...
(GUIDE)How to create own scripts/bots with AutoIt
11/19/2008 - Rappelz - 4 Replies
for all who want to learn something or create bots for browsergames, mmorpgs and other games download Autoit here: http://www.autoitscript.com/cgi-bin/getfile.pl?au toit3/autoit-v3-setup.exe Now run the Scite Script Editor this is where you type in your code, let check your code if errors are in it and compile it to executable exe file. the first thing you need are the coordinates of your mouse to find locations on the screen, like skill buttons, status bars, or just positions which...
learning how to create/write Bots/Macros
01/28/2006 - Conquer Online 2 - 8 Replies
Well I know that this is kind of off topic and a lot of people have been flamed by asking questions. I've tried a search and couldnt really find anything in english that i could actually read. Does anyone know any good sites or anything that a beginner could start learning how to create/write programs for bots and stuff like that? I'm learning how to write programs in VisualBasic at school but dont really know much. If anyone could supply any sites and stuff it would be awesome. thanks in...



All times are GMT +1. The time now is 08:02.


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.