The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "User:Oni/macros"

From A Tale in the Desert
Jump to navigationJump to search
(New page: ---- '''Oni's Macro Guide''' ---- <b> Step 1: Get the program I use </b><br> <br> If you do not have ACTool yet, got to [http://ACTOOL.NET ACTool Download Page]<br> <br> Install the Pro...)
 
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
----
 +
'''Oni's Macro Making Guide''' (Using ACTool) <BR>
 +
  
 
----
 
----
'''Oni's Macro Guide'''
 
  
 +
== Level 1 Tutorial ==
 +
<br>
 +
Prenotes: This tutorial assumes your using a Windows operating system. I have had no experience creating macro in any other operating systems. Sorry :(
  
 
----
 
----
 +
 
<b> Step 1: Get the program I use </b><br>
 
<b> Step 1: Get the program I use </b><br>
 
<br>
 
<br>
Line 17: Line 23:
 
----
 
----
 
<b> Step 2: Basic functions</b><br>
 
<b> Step 2: Basic functions</b><br>
 +
<br>
 +
Function: <b> CTRL+M </b>.<br> This will capture the mouse position and place the coordinates of the mouse in the macro.
 +
To use this command, place the mouse on the object you want to click on, use ALT+TAB to tab over to the ACTool program,
 +
and press <b> CTRL+M </b>.<br>
 +
<br>
 +
Function: <b>F2</b>.<br>
 +
This will start the macro with out having to click the start button.<br>
 +
<br>
 +
Function: <b>ALT+TAB ALT</b><br> This will Tab over to the macro program, then the 2nd "ALT" will select the file menu which will pause the macro, from there mouse over to "Macro" menu and click "Stop".<br> This is very useful sometimes to stop a macro that is running and not functioning correctly. Many times it is nearly impossible to tab over and click stop on the macro.<br>
 +
<br>
 +
Function: <b>"Search" menu, "Replace"</b><br>
 +
Self explanatory: replaces any value in the macro with the given value.<br>
 +
<br>
 +
 +
----
 +
<b> STEP 3: Basic Commands</b><br>
 +
<br>
 +
Command: <b>MousePos</b><br>
 +
Used in the form of <b> MousePos X,Y </b>where X,Y are the mouse coords. Easiest use of this command is by using the <b>CTRL+M</b> function listed above.<br>
 +
<b>MousePos X,Y</b> is the coordinates on the screen that you want the mouse to move to. ie. MousePos 281, 33.<br>
 +
<br>
 +
Command: <b>Delay n</b><br>
 +
Used in the form of <b>Delay n</b> where "n" is the amount of time in milliseconds. 1 second = "Delay 1000".<br>
 +
<br>
 +
Command: <b>Leftclick, Rightclick</b><br>
 +
Self explanatory: will leftclick or rightclick on desired coordinates.<br>
 +
<br>
 +
Command: <b>Keys n</b><br>
 +
Used in the form of <b>Keys n</b> where "n" is a letter or number. This command will simulate that key stroke (great for using hotkeys in your macro).<br> If you want to spell something out or put in a 2 or 3 digit number, the command must be repeated. <br>
 +
ie: wanting to type in the number "100" <br>
 +
Keys 1<br>
 +
Delay 50<br>
 +
Keys 0<br>
 +
delay 50<br>
 +
Keys 0<br>
 +
<br>
 +
 +
----
 +
<b> Application:</b><br>
 +
Ok, now that we know the basics lets write a simple brick making macro.<br>
 +
Open the ACTool program and click "New" to start a new macro. Go ahead and erase those first 2 lines of garbage (something about must have this line to select proper window blah, blah blah... its not needed).<br>
 +
<br>
 +
In ATITD, go over to your Improved brick racks and select a standing position that can reach all or most of your brick racks without your character moving to make bricks. (depends on how many racks you have i guess). we will not want the character moving while the macro is running.<b> Remember</b> this standing position: your character will need to be in this same spot every time you run this macro<br>
 +
<br>
 +
Hit F8 twice to go into Cartographer's view, Zoom all the way in, and hit ALT+L. (locks the screen, prevents zooming until you hit ALT+L again).<br>
 +
<br>
 +
Without moving your character, place the mouse over the first brick rack. Then, without moving the mouse, ALT+TAB over to ACTool, and press CTRL+M. You will now have something like "MousePos X,Y" in your macro. This the location of the first brick rack.<br>
 +
<br>
 +
Repeat this step for each of your brick racks that your character can reach without moving. (I stand my character in the middle of all the brick racks for best reach).<br>
 +
<br>
 +
Now, in ACTool, you will have a list of "MousePos" coordinates, put a blank space between each line by clicking at the end of each line and hitting the "Enter Key".<br>
 +
<br>
 +
At the very top of the macro, above the first "MousePos", type in "Delay 2000". This will delay the macro for 2 seconds before starting<br>
 +
<br>
 +
In the space directly Below the first "MousePos X,Y" type in the following:<br>
 +
Delay 100<br>
 +
Keys T<br>
 +
Delay 50<br>
 +
Keys B<br>
 +
Delay 50<br>
 +
<br> Now copy that group of commands (everything starting at the Delay 100 down to the last Delay 50) and paste it into every following blank space after the "MousePos" commands.
 +
<br>
 +
At the very end of the macro, put in the command, "Delay 70000" - will delay for 70 seconds.<br>
 +
<br>
 +
IF you had 4 brick racks, your macro should look something like this:<br>
 +
<br>
 +
Delay 2000<br>
 +
MousePos X,Y<br>
 +
Delay 100<br>
 +
Keys T<br>
 +
Delay 50<br>
 +
Keys B<br>
 +
Delay 50<br>
 +
MousePos X,Y<br>
 +
Delay 100<br>
 +
Keys T<br>
 +
Delay 50<br>
 +
Keys B<br>
 +
Delay 50<br>
 +
MousePos X,Y<br>
 +
Delay 100<br>
 +
Keys T<br>
 +
Delay 50<br>
 +
Keys B<br>
 +
Delay 50<br>
 +
MousePos X,Y<br>
 +
Delay 100<br>
 +
Keys T<br>
 +
Delay 50<br>
 +
Keys B<br>
 +
Delay 50<br>
 +
Delay 70000<br>
 +
<br>
 +
In ACTool, set the "number of times to run" to whatever number of times you would want the macro to repeat.<br>
 +
Click Start then Quickly hit ALT+TAB to go back to ATITD.<br>
 +
<br>

Latest revision as of 19:47, 16 August 2010


Oni's Macro Making Guide (Using ACTool)



Level 1 Tutorial


Prenotes: This tutorial assumes your using a Windows operating system. I have had no experience creating macro in any other operating systems. Sorry :(


Step 1: Get the program I use

If you do not have ACTool yet, got to ACTool Download Page

Install the Program

I've found this to be the easiest to learn and most of the commands make logical sense to me. ie. "mousepos", "delay", "loop" ect.
There are a lot more advanced macro creating tools out there but most of them are similar to scripting language and confuse the hell outta me



Step 2: Basic functions

Function: CTRL+M .
This will capture the mouse position and place the coordinates of the mouse in the macro. To use this command, place the mouse on the object you want to click on, use ALT+TAB to tab over to the ACTool program, and press CTRL+M .

Function: F2.
This will start the macro with out having to click the start button.

Function: ALT+TAB ALT
This will Tab over to the macro program, then the 2nd "ALT" will select the file menu which will pause the macro, from there mouse over to "Macro" menu and click "Stop".
This is very useful sometimes to stop a macro that is running and not functioning correctly. Many times it is nearly impossible to tab over and click stop on the macro.

Function: "Search" menu, "Replace"
Self explanatory: replaces any value in the macro with the given value.


STEP 3: Basic Commands

Command: MousePos
Used in the form of MousePos X,Y where X,Y are the mouse coords. Easiest use of this command is by using the CTRL+M function listed above.
MousePos X,Y is the coordinates on the screen that you want the mouse to move to. ie. MousePos 281, 33.

Command: Delay n
Used in the form of Delay n where "n" is the amount of time in milliseconds. 1 second = "Delay 1000".

Command: Leftclick, Rightclick
Self explanatory: will leftclick or rightclick on desired coordinates.

Command: Keys n
Used in the form of Keys n where "n" is a letter or number. This command will simulate that key stroke (great for using hotkeys in your macro).
If you want to spell something out or put in a 2 or 3 digit number, the command must be repeated.
ie: wanting to type in the number "100"
Keys 1
Delay 50
Keys 0
delay 50
Keys 0


Application:
Ok, now that we know the basics lets write a simple brick making macro.
Open the ACTool program and click "New" to start a new macro. Go ahead and erase those first 2 lines of garbage (something about must have this line to select proper window blah, blah blah... its not needed).

In ATITD, go over to your Improved brick racks and select a standing position that can reach all or most of your brick racks without your character moving to make bricks. (depends on how many racks you have i guess). we will not want the character moving while the macro is running. Remember this standing position: your character will need to be in this same spot every time you run this macro

Hit F8 twice to go into Cartographer's view, Zoom all the way in, and hit ALT+L. (locks the screen, prevents zooming until you hit ALT+L again).

Without moving your character, place the mouse over the first brick rack. Then, without moving the mouse, ALT+TAB over to ACTool, and press CTRL+M. You will now have something like "MousePos X,Y" in your macro. This the location of the first brick rack.

Repeat this step for each of your brick racks that your character can reach without moving. (I stand my character in the middle of all the brick racks for best reach).

Now, in ACTool, you will have a list of "MousePos" coordinates, put a blank space between each line by clicking at the end of each line and hitting the "Enter Key".

At the very top of the macro, above the first "MousePos", type in "Delay 2000". This will delay the macro for 2 seconds before starting

In the space directly Below the first "MousePos X,Y" type in the following:
Delay 100
Keys T
Delay 50
Keys B
Delay 50

Now copy that group of commands (everything starting at the Delay 100 down to the last Delay 50) and paste it into every following blank space after the "MousePos" commands.
At the very end of the macro, put in the command, "Delay 70000" - will delay for 70 seconds.

IF you had 4 brick racks, your macro should look something like this:

Delay 2000
MousePos X,Y
Delay 100
Keys T
Delay 50
Keys B
Delay 50
MousePos X,Y
Delay 100
Keys T
Delay 50
Keys B
Delay 50
MousePos X,Y
Delay 100
Keys T
Delay 50
Keys B
Delay 50
MousePos X,Y
Delay 100
Keys T
Delay 50
Keys B
Delay 50
Delay 70000

In ACTool, set the "number of times to run" to whatever number of times you would want the macro to repeat.
Click Start then Quickly hit ALT+TAB to go back to ATITD.