Register for your free account! | Forgot your password?

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

  • 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 05/07/2007, 13:36   #76
 
hok30's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 1,366
Received Thanks: 256
lol, every1 talkin about crackin sv, isnt that illegal??
hok30 is offline  
Old 05/17/2007, 13:46   #77
 
elite*gold: 0
Join Date: Apr 2007
Posts: 6
Received Thanks: 0
I gonna try it if it works +k

<hr>Append on May 17 2007, 13:50<hr> sum things i dont understand lol xD ill find out ^^
Basjethetopgamer is offline  
Old 05/18/2007, 21:32   #78
 
elite*gold: 0
Join Date: May 2007
Posts: 64
Received Thanks: 0
dude nice i havent read hole thing yet but +K 4 hard work
londonman is offline  
Old 05/19/2007, 06:23   #79
 
AvatarOfMight's Avatar
 
elite*gold: 0
Join Date: Jun 2006
Posts: 31
Received Thanks: 2
Yes, this is a very useful guide but I think that AutoIt has more limitations (or at least less functions) than AutoHotKey. There is a very useful guide made by hieitk about AutoHotKey.
For those who like programming you can try reading that guide too. Both guides, this one and hieitk's are very useful .
Here is the link to Hieitk's AutoHotKey tutorial
AvatarOfMight is offline  
Old 05/29/2007, 04:58   #80
 
elite*gold: 0
Join Date: Apr 2006
Posts: 15
Received Thanks: 1
omg i'm the biggest noob ever i can't even figure out how to do any of this ... oh well i guess i'm just gonna pay for sv so i don't gotta worry about this
jaketg99 is offline  
Old 06/16/2007, 07:57   #81
 
elite*gold: 0
Join Date: Apr 2007
Posts: 101
Received Thanks: 14
ok i downloaded it and as dumb as this sounds i am a complete noob to this and dont know where to start, can someone pls help. i f it helps any cause im tryin to make something SIMILAR to sv
ccbrat17 is offline  
Old 06/19/2007, 22:21   #82
 
elite*gold: 0
Join Date: Jun 2006
Posts: 7
Received Thanks: 0
+k! nice!!
but i got a question:
FileMove ( "source", "dest" [, flag] ) that moves a file from A to B
lets make an example: FileMove("D:&#092;AutoIt1.au3","D:&#092;123&#092;A utoIt1.au3")

the filename i want to move is "Autoit1.au3" but if i change the name of this file, it wont work anymore. how to say "move this file to D:&#092;123"??
i hope u can understand me my english is not the best
eRaSeR! is offline  
Old 06/22/2007, 23:20   #83
 
elite*gold: 0
Join Date: Jun 2006
Posts: 7
Received Thanks: 0
what about answering?
ty

and sry because of double posting...
eRaSeR! is offline  
Old 07/22/2007, 03:23   #84
 
elite*gold: 0
Join Date: Jul 2007
Posts: 6
Received Thanks: 5
Hi! Really love the tutorial - Helped get me started. Hate to ask a question on my first post.. But I can't seem to get this damned script to work. Basically the GUI opens and asks you to into the pixel colour of the monster under the mouse (And this is found by pressing Alt+A and copy and pasting into top box), and also what you want it to say every 15 minutes... The problem being that I'm pretty sure I haven't used the variables in the right way - What should happen is when you click start, it takes the &#036;pixel variable and then sets it as the pixel to find when it scans every 3 seconds.. This is where it stops working... it works fine without the GUI and just having a predefined pixel colour. Also the say command doesn't seem to work either - any help with that would be great!

Code:
#include &#60;GUIConstants.au3>

Dim &#036;start, &#036;var, &#036;pos, &#036;say, &#036;pixel, &#036;pixelcolor, &#036;btn

HotKeySet&#40;&#34;!x&#34;,&#34;QuitLoop&#34;&#41;
Func QuitLoop&#40;&#41;
&#036;start=0
EndFunc

GUICreate&#40;&#34;Choose your options&#34;, 400, 250&#41; 
GUICtrlCreateLabel&#40;&#34;Colour of Pixel&#58;&#34;, 30, 10&#41;
&#036;pixel = GUICtrlcreateinput&#40;&#34;&#34;, 30, 31, 200, 20&#41;
GUICtrlCreateLabel&#40;&#34;What to say&#58;&#34;, 30, 68&#41;
&#036;say = GUICtrlcreateinput&#40;&#34;Hi just watching movie so not really paying attention&#34;, 30, 88, 350, 20&#41;
GUICtrlCreateLabel&#40;&#34;Colour under mouse&#58; &#40;Press Alt+A to update&#41;&#34;, 30, 170&#41;
hotkeyset&#40;&#34;!a&#34;,&#34;change&#34;&#41;
Func change&#40;&#41;
&#036;pos=mousegetpos&#40;&#41;
&#036;var=PixelGetColor &#40; &#036;pos&#91;0&#93; , &#036;pos&#91;1&#93; &#41;
GUIctrlcreateinput&#40;&#036;var, 30, 190, 150, 20&#41;
EndFunc
&#036;btn = GUICtrlCreateButton&#40;&#34;Start&#34;, 350, 200, 40&#41;
GUISetState&#40;@SW_SHOW&#41;


&#036;msg = 0
While &#036;msg &#60;> &#036;GUI_EVENT_CLOSE
 * * * &#036;msg = GUIGetMsg&#40;&#41;
 * * * * * Select
 * * Case &#036;msg = &#036;btn
 * *&#036;pixelcolor = &#036;pixel
 * *GUISetState&#40;@SW_HIDE&#41;
 * *&#036;start = 1
 * * * EndSelect
Wend

While &#036;start=1
&#036;coord = Pixelsearch&#40;8, 33, 519, 416, &#036;pixelcolor&#41;
If @error &#60;> 1 then
MouseClick&#40;&#34;left&#34;, &#036;coord&#91;0&#93;, &#036;coord&#91;1&#93; &#41;
Endif
sleep&#40;3000&#41;
WEnd

While &#036;start=1
Send&#40;&#036;say&#41;
Send&#40;&#34;{ENTER}&#34;&#41;
sleep&#40;900000&#41;
WEnd
I got a really small screen - So just ignore coordinates of pixel search - ANYONE HELP PLEASE!

Below is a compiled version of the script!

<hr>Append on Jul 22 2007, 06:08<hr>
Quote:
Originally posted by eRaSeR!@Jun 19 2007, 22:21
+k! nice!!
but i got a question:
FileMove ( "source", "dest" [, flag] ) that moves a file from A to B
lets make an example: FileMove("D:&#092;AutoIt1.au3","D:&#092;123&#092;A utoIt1.au3")

the filename i want to move is "Autoit1.au3" but if i change the name of this file, it wont work anymore. how to say "move this file to D:&#092;123"??
i hope u can understand me my english is not the best
Hey, not sure if I understood correctly but try adding the flag FileMove("D:&#092;AutoIt1.au3","D:&#092;123&#092;A utoIt1.au3", 9) That will make it create the directory if it doesn't exist and also overwrite.. *Read below if that doesn't help*

Quote:

FILEMOVE:
Moves one or more files

FileMove ( "source", "dest" [, flag] )

Parameters
source: The source path and filename of the file to move. (* wildcards are supported)
dest: The destination path and filename of the moved file. (* wildcards are supported)
flag: [optional] this flag determines whether to overwrite files if they already exist:
Can be a combination of the following:
0 = (default) do not overwrite existing files
1 = overwrite existing files
8 = Create destination directory structure if it doesn't exist (See Remarks).

Return Value
Success: Returns 1.
Failure: Returns 0 if source cannot be moved or if dest already exists and flag=0.



Remarks
If the source and destination paths are on different volumes a copy and delete operation is performed rather than a move.

Because AutoIt lacks a "FileRename" function, use FileMove to rename a file!

The destination directory must already exist, except using with flag value '8'.
For instance the combined flag '9' (1 + 8) overwrites the target file and prechecks for the destination directory structure and if it doesn't exist creates it automatically.

Some file attributes can make the overwriting impossible.

Code:
Example
FileMove&#40;&#34;C&#58;&#092;foo.au3&#34;, &#34;D&#58;&#092;mydir&#092;bak.au3&#34;&#41;

; Second example&#58;
;  uses flags '1' &#40;owerwriting&#41; and '8' &#40;autocreating target dir structure&#41; together
;  moves all txt-files from temp to txtfiles and prechecks if
;  target directory structure exists, if not then automatically creates it
FileMove&#40;@TempDir & &#34;&#092;*.txt&#34;, @TempDir & &#34;&#092;TxtFiles&#092;&#34;, 9&#41;
Attached Files
File Type: ibf post-108-1185067405.ibf (212.5 KB, 7 views)
IzzehO is offline  
Old 07/23/2007, 19:27   #85
 
elite*gold: 20
Join Date: Jul 2007
Posts: 1,979
Received Thanks: 270
hey i am using this tut. i want to write a bot for Hero Online... when i write e.g.: MouseClick("left",x,y,#,speed) what should i enter @ x,y?? i want him to click on mobs. how can i do that?
katze123 is offline  
Old 08/07/2007, 04:45   #86
 
ViktorWood's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 32
Received Thanks: 1
much help. thanks +k
ViktorWood is offline  
Old 08/11/2007, 10:45   #87
 
elite*gold: 0
Join Date: Jun 2007
Posts: 6
Received Thanks: 0
can i git lil help guys i got it downlouded but cant seem to git it to work ;/
nathan6911 is offline  
Old 08/13/2007, 15:58   #88
 
elite*gold: 0
Join Date: Jun 2007
Posts: 163
Received Thanks: 78
gay
geonsteelers is offline  
Old 08/13/2007, 19:42   #89
 
jemy757's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 150
Received Thanks: 13
German will be very nice bec i like dont undersdand any thing so plz try to make the same in german or does autoit have help in german
jemy757 is offline  
Old 08/29/2007, 21:19   #90
 
elite*gold: 0
Join Date: Mar 2007
Posts: 6
Received Thanks: 0
omfg this is GREAT!!

is there a way to know were the x and the y cords for the mouse are located though?

or should I just try until I get the right results?
heizl 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 01:44.


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.