Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Guides & Templates
You last visited: Today at 21:19

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

Advertisement



How-To: Build A Custom Macro.

Discussion on How-To: Build A Custom Macro. within the CO2 Guides & Templates forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
N3W8Y's Avatar
 
elite*gold: 0
Join Date: Feb 2006
Posts: 274
Received Thanks: 307
Ok this guide is for all the newbs that wanna learn some basic macroing. Maybe help you to contribute to the ePvP community. Enjoy

First go here: and download and install AutoHotKey.

To create a script, just use notepad to enter the code and save it as *.ahk.

To compile a script, just right click on it and 'Compile Script", this will turn your script into an Application.

There is also a command line option (Start-->Run) which allows you to embed an icon. It goes like this: ahk2exe.exe /in CObuddy.ahk /out CObuddy.exe /icon buddy.ico Make sure Ahk2e.exe, upx.exe, and AutoHotkeySC.bin are in the same directory the script is in.

To embed files within the EXE, use this command at the start of the script, they will extract when the application is run. FileInstall, SmokinAli3N.jpg, SmokinAli3N.jpg, 1 Again it's best to copy the files to the same directory the script is in. Or include the full path.

************************************************** ***************

Here's some common commands you'll use all the time:

***Mouse Click***

MouseClick [, WhichButton , X, Y, ClickCount, Speed, D|U, R]



Parameters

WhichButton The button to click: Left, Right, Middle (or just the first letter of each of these); or the fourth or fifth mouse button (X1 or X2), which is supported on Windows 2000/XP or later. For example: MouseClick, X1. In v1.0.30+, this parameter may be omitted, in which case it defaults to Left.

Rotate the mouse wheel: On Windows NT/2000/XP or later, specify WheelUp or WU to turn the wheel upward (away from you); specify WheelDown or WD to turn the wheel downward (toward you). In this case, ClickCount is the number of notches to turn the wheel.

X, Y The x/y coordinates to move the mouse to, prior to clicking, which can be expressions. Coordinates are relative to the active window unless CoordMode was used to change that. If omitted, the cursor's current position is used.
ClickCount The number of times to click the mouse, which can be an expression. If omitted, the button is clicked once.
Speed The speed to move the mouse in the range 0 (fastest) to 100 (slowest), which can be an expression. Note: a speed of 0 will move the mouse instantly. If omitted, the default speed (as set by SetDefaultMouseSpeed or 2 otherwise) will be used.
D|U If this parameter is omitted, each click will consist of a "down" event followed by an "up" event. Alternatively:
D = Press the mouse button down but do not release it (i.e. generate a down-event).
U = Release the mouse button (i.e. generate an up-event).

R If this parameter is the letter R, the X and Y coordinates will be treated as offsets from the current mouse position. In other words, the cursor will be moved from its current position by X pixels to the right (left if negative) and Y pixels down (up if negative).

************************************************** ***************

***Loop***

Loop [, Count]



Parameters

Count How many times (iterations) to perform the loop. If omitted or blank, the Loop is infinite (i.e. until a break or return is encountered). Unlike Repeat...EndRepeat, if Count is 0, zero iterations will be performed rather than an infinite number.

Due to the need to support file-pattern loops, Count must not be an expression. However, it can be a variable reference such as %ItemCount%.

************************************************** ***************

***Sleep***

Sleep, Delay



Parameters

Delay The amount of time to pause (in milliseconds) between 0 and 2147483647 (24 days), which can be an expression.

************************************************** ***************

Those 3 commands will allow you to build a custom macro for lvling ANY skill.

AutoHotKey includes an excellent Help File:



Well that should be enuff to get you started. If you have any questions about how to perform certain tasks or how to run commands, please post here and don't PM me.

************************************************** ***************

Example Script:

This will hold Ctrl down and right click continuosly. It will pause if "s" is pressed and exit if "x" is pressed.

Loop
{

GetKeyState, state, s
if state = D ; The key has been released, so break out of the loop.
MsgBox Basi AutoClicker Paused! Click OK to resume...

GetKeyState, state, x
if state = D ; The key has been released, so break out of the loop.
break

Send, {CTRLDOWN}
MouseClick, right
MouseClick, right
MouseClick, right
MouseClick, right
Send, {CTRLUP}


}


Enjoy
N3W8Y is offline  
Old 06/02/2006, 22:31   #2
 
elite*gold: 0
Join Date: Jan 2006
Posts: 110
Received Thanks: 2
this is very helpfull man thanks +karma
hemp is offline  
Old 06/02/2006, 23:02   #3
 
elite*gold: 0
Join Date: Mar 2006
Posts: 16
Received Thanks: 0
With guides in mind; is there a guide or anything that will help me create my own Speedhacks? ie. Chris' free trial is good, but keyword here, trial.

I would like to know where to find these applications you use to create these such programs, if I may.
Birchy87 is offline  
Old 06/02/2006, 23:20   #4
 
N3W8Y's Avatar
 
elite*gold: 0
Join Date: Feb 2006
Posts: 274
Received Thanks: 307
Quote:
Originally posted by Birchy87@Jun 2 2006, 17:02
With guides in mind; is there a guide or anything that will help me create my own Speedhacks? ie. Chris' free trial is good, but keyword here, trial.

I would like to know where to find these applications you use to create these such programs, if I may.
You would use C+, Delphi, VB, etc...these are NOT basic. You can find HUGE amounts of guides, etc on the net for any of these languages. They are too advanced for someone to just write a tutorial on them.

Coder62 has this: it may help ya.

Hope this helps
N3W8Y is offline  
Old 06/02/2006, 23:33   #5
 
elite*gold: 0
Join Date: Dec 2005
Posts: 344
Received Thanks: 14
thanks for this. time to start not being a noob :P
n00by is offline  
Old 06/02/2006, 23:39   #6
 
elite*gold: 0
Join Date: Apr 2006
Posts: 48
Received Thanks: 0
man i should try to make a copartner, i spent 3 years in school using visual basics.... i think i could do it
fuct is offline  
Old 06/03/2006, 06:44   #7
 
N3W8Y's Avatar
 
elite*gold: 0
Join Date: Feb 2006
Posts: 274
Received Thanks: 307
Quote:
Originally posted by fuct@Jun 2 2006, 17:39
man i should try to make a copartner, i spent 3 years in school using visual basics.... i think i could do it
lol nice
N3W8Y is offline  
Old 06/03/2006, 08:05   #8
 
elite*gold: 0
Join Date: Apr 2006
Posts: 12
Received Thanks: 1
yo !! make a macro... ppl are dying to lvvl on CO !! plz PVPERS !!
pegazzos is offline  
Old 06/04/2006, 05:14   #9
 
elite*gold: 0
Join Date: May 2006
Posts: 44
Received Thanks: 0
Wow, very cool. Thank you for all your help. I believe this will allow pretty much anyone to create their own macro and set them off to create just about any program. Thanks again. Maybe I won't be a total noob anymore.

EDIT: WHOA!!! Don't know how this happend, made my macro right click, sit, than meditate in a constant loop and in like 10 seconds each time my xp bar was full! I have no idea if I screwed with the server or if it was client sided or if I'm just a total noob. Either way it freaked me out. If anyone can shed light please tell me!
spurginwinn is offline  
Old 06/04/2006, 08:52   #10
 
N3W8Y's Avatar
 
elite*gold: 0
Join Date: Feb 2006
Posts: 274
Received Thanks: 307
Quote:
Originally posted by spurginwinn@Jun 3 2006, 23:14
Wow, very cool. Thank you for all your help. I believe this will allow pretty much anyone to create their own macro and set them off to create just about any program. Thanks again. Maybe I won't be a total noob anymore.

EDIT: WHOA!!! Don't know how this happend, made my macro right click, sit, than meditate in a constant loop and in like 10 seconds each time my xp bar was full! I have no idea if I screwed with the server or if it was client sided or if I'm just a total noob. Either way it freaked me out. If anyone can shed light please tell me!
Have you been able to reproduce these results again? Prolly just client sided...
N3W8Y is offline  
Old 06/08/2006, 06:29   #11
 
elite*gold: 0
Join Date: Jun 2006
Posts: 3
Received Thanks: 0
wow thanks for that stuff! I just made a bot to log me back in when I get disconnected, now I can use it in conjunction with mad's miner and I'm set thanks man!



EDIT: oh, cool I was able to +k you wasnt sure I could
Phate99 is offline  
Old 06/08/2006, 06:51   #12
 
N3W8Y's Avatar
 
elite*gold: 0
Join Date: Feb 2006
Posts: 274
Received Thanks: 307
Quote:
Originally posted by Phate99@Jun 8 2006, 00:29
wow thanks for that stuff! I just made a bot to log me back in when I get disconnected, now I can use it in conjunction with mad's miner and I'm set thanks man!



EDIT: oh, cool I was able to +k you wasnt sure I could
lol thanks
N3W8Y is offline  
Old 06/08/2006, 08:03   #13
 
elite*gold: 0
Join Date: Jun 2006
Posts: 230
Received Thanks: 6
yes awsome i can start creating some macro's now

+1 k for yo
soemaal is offline  
Old 06/08/2006, 18:01   #14
 
hax0rzz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 149
Received Thanks: 112
very nice +karma
hax0rzz is offline  
Old 06/08/2006, 20:15   #15
 
elite*gold: 200
Join Date: Jan 2006
Posts: 322
Received Thanks: 4
i love N3W8Y =o))
Susi>_> is offline  
Reply


Similar Threads Similar Threads
I SEARCH THE BEST CHINESE BUILD CHAR. AND I NEED THE GUIDE FOR THIS BUILD
06/27/2009 - Silkroad Online - 6 Replies
I SEARCH THE BEST CHINESE BUILD CHAR. AND I NEED THE GUIDE FOR THIS BUILD
FierceMS - 2 Custom Jobs, 100+ Custom Quests, and so much more!
10/22/2008 - MapleStory - 0 Replies
http://img262.imageshack.us/img262/3594/bannerfz2. png Website Rates 150x Exp 150x Meso 20x Drop What makes us the best?
Archer Lab Macro! Custom Made 2 fit ur prefrences!
07/01/2007 - CO2 Bots & Macros - 2 Replies
This Macro was made by me, all by myslef, it is a working macro but u can open it with MacroScriptEditor and set it ne custom way you would like.....i am not very good at this(it is my 1st time0 but if u would like 2 be a nice person...+k 4 trying (^_^) text2schild.php?smilienummer=1&text=im a noob! give me und k' border='0' alt='im a noob! give me und k' />
Custom Macro'z Made Easy. priv server
03/18/2007 - WoW Bots - 1 Replies
Can someone move this to the Macro'z Section !!! pretty sure this hasn't been posted, if it has feel free to delete my post. DOWNLOADhttp://www.rs2cheating.com/cheats/mousema cro.zip This program was made by kuroro at rs2cheating.com linked from http://www.rs2cheating.com/rs-cheats.php and full credit goes to the creater. This is spose to be for Runescape so dont expect that Warden wont find this and detect it as a third party program. SIMPLE STEP. 1. Just run WoW in Windowed mode. 2....



All times are GMT +1. The time now is 21:20.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.