Macros

**Intro**

Macros are a useful way to afk and play. The macros that will be listed here use AutoHotkey, which can be downloaded from Here. After installing it, all you'll need to do is run the .ahk macro that you've installed from this page. Down below, before the actual macros, I'll explain how to edit the macros to configure them to your liking, and needs. The original macro used, and edited for all these macros listed was posted on the Discord by Camroc.

---This is going to be a very basic tutorial---

## Editing your Macro

For reference, variables to edit will be marked XXX in the macros. These will mostly be sleep timers, and keybinds. Keep in mind, do not set action intervals (spamming the same button) to 1> seconds (the game will kill your character). To edit these macros, you simply have to right click them and click edit, this can be done with a program as simple as Notepad. IF the macro is already RUNNING when you do your EDIT. You will have to right click it on your task bar, and click 'Reload this script'.

The default specific window for each of these macros is 'Warcraft III'. It will launch the macro on every window with that name. So if you're multiboxing, it will send it to both of them. If you want it to specifically choose a certain window you'll have to find the PID. To do this, right click your macro on your task bar, and click 'Window Spy'. Then click on the window you want, and you will see "ahk\_pid #####". Replace all the 'Warcraft III' with 'ahk\_pid #####' from the window spy. Unfortunately the ID changes every new instance of that window. So you'll have to find it every time you launch Warcraft, and edit the macro with the new ID # (if youre using ahk\_pid #####).

Keybind lines will always look like XXX::. All you have to replace is the XXX. Recommended to use F# keys (ex. F1::). Or you can use any letter/number. Or even shift + letter (ex. ^F::). The ^ represents the shift key. Make sure each keybind is a different button, otherwise when you launch the macro, you will get a popup saying there is a problem.

For a list of keybinds and how to type them, check this link Here.

Sleep #### represents how long it waits, before the next action. AHK uses miliseconds (1 second = 1000)

The very top keybind lines ###::Pause, is the button that will pause the macro, until it's pressed again (Paused Macros will show up as red on your task bar).

The very bottom keybind lines ###::ExitApp, is the button that will completely close that macro.

## Macros

 Konata's Super Loader v5
This macro will allow you to organize your Upgrade Slave RPG folder, AS WELL as load all your characters! For full functionality to work, you must have the correct folders made and named accordingly (names of folders will be listed, or can be found in the discord, when this macro was first posted)
V2: Introduces quick cam changes, easy macro loading, and autoskill for rakshasa players
V3: Introduces Spectre
V4: Works with Korean saves
V5: Introduces Necromancer
* If you already have folders made, please rename them
	+ If you do not have folders made, the macro will create them for you
* Edit macro, and replace the default directory for /Upgrade Slave RPG/
	+ (Go to the folder, and copy the url, and paste it into the macro, between the " ")
* Leave or Edit the start keybind (F9)
	+ You have to add keybinds at the bottom, or delete the 3 commands (ExitApp, suspend, Reload)

 * Ashtarte
* Blood Evil
* Dark Knight
* Desperado
* Divineress
* Geniewiz
* Hekate
* Indra
* Majesty
* Neo Spectre
* Neo Vagabond
* Omniblade
* Overmind
* Rakshasa
* Storm Trooper
* Striker

*Sneaper's Notice:* Please NOTE that these macros are time based. It will be up to you, to properly time them for your character/power. It may take some tweaking for your ideal setup, and will need to be changed on every power spike you receive.

 Simple Auto Save
* Keybinds (XXX::)
* Interval between saves (Sleep XXX \* 60000)
 Special Boss + Save
* Keybinds (XXX::)
* Interval between saves (Sleep XXX \* 60000)
* Which boss (3 or 4) and where to return (2 or 7)
 Both Special Boss + Save
* Keybinds (XXX::)
* Interval between saves (Sleep XXX \* 60000)
* Which boss (3 or 4) and where to return (2 or 7)
* Optional: Replace Warcraft III with your ahk\_pid #####

 Rotation + Simple Auto Save
* Keybinds (XXX::)
* Interval between saves (Sleep XXX \* 60000)
* Optional: Turn on/off certain skills
 Rotation + Spec Boss + Save
* Keybinds (XXX::)
* Interval between saves (Sleep XXX \* 60000)
* Which boss (3 or 4) and where to return (2 or 7)
* Optional: Turn on/off certain skills
 Rotation + Both Boss + Save
* Keybinds (XXX::)
* Interval between saves (Sleep XXX \* 60000)
* Which boss (3 or 4) and where to return (2 or 7)
* Optional: Turn on/off certain skills
* Optional: Replace Warcraft III with your ahk\_pid #####

## Image Search Macros

These macros are more advanced, and require a few extra steps, and installations. Please follow the steps below to get started.

* 1. Download the zip file available HERE
* 2. Extract the Lib folder and place it in your AHK installation folder (usually found 'C:\Program Files\AutoHotkey')

* 3. That's it for this part :D

Next you'll want to install the macros, so follow the steps below

* 1. Download the zip file available HERE
* 2. Extract the 2 macros, and image file.
	+ 2.1. Make sure the IMAGE stays in the SAME folder with the macros!!
* 3. Edit the macro (whichever, passive or active), like how you would with the old macros. Editing all the XXX's
	+ 3.1. If the PASSIVE macro does not work properly, please contact Sneaper on the discord!

Finally, these macros are ready to be used! Now they work a little differently than the old macros. So again, follow the steps below :)

* 1. Launch your chosen macro (passive or active)
* 2. Open your Warcraft Client (so its the active window) and PRESS THE RELOAD KEYBIND THAT YOU SET
* 3. Click in game, make sure you have your CHARACTER SELECTED, and press your START keybind
* 4. If it doesn't work, you will need to replace the attack.png image with your own cropped attack icon (when it's highlighted green, while attacking something)

The Macro should now be running! Just make sure you don't cover the attack button with your in-game cursor, otherwise it wont be able to find it!

For those who need to do some testing, if the macros above dont work. Please try the 2 macros listed below. If you still receive error, make sure to DM Sneaper on the community Discord. These are also useful for figuring out your own gdip image macro!

* 1. Download the zip file available HERE
* 2. Extract the 2 macros, and image file
	+ 2.1. Make sure the IMAGE stays in the SAME folder with the macros!!

ImgSearchTest.ahk: Test to make sure image search is working

* 1. Run the Macro
* 2. Open your Warcraft 3 client
* 3. Use your 'RELOAD' keybind (Default F3)
* 4. Make sure your character is selected and attacking
* 5. Press F1. A message box should appear. 1 = Image found. 0 = Image not found. -1001 = error.

HaystackTest.ahk: Test to make sure haystack screen grab is working

* 1. Run the Macro
* 2. Open your Warcraft 3 client
* 3. Use your 'RELOAD' keybind (Default F3)
* 4. Press F1, then press F2
* 5. Open the new image named 'screen.bmp'
* 6. If you can see a warcraft screen shot, it was a success. If the picture is only black, there was an error.