Hazefest's Written AHK Guide for Eden.

The right place for talking about Dark Age of Camelot or Eden
User avatar
jonny290
Wanderer
Wanderer
Posts: 2
Joined: Wed Jan 25, 2023 8:44 am

Re: Hazefest's Written AHK Guide for Eden.

Yeah, that's a dumb take. I've got RSI - ironically from too much daoc on live - and it's absolutely helped. I only wanna hear disagreement from people that leveled a reaver with the old 4 style block and 3 style parry chains.

if you want a game where he who can press the most buttons wins, go play a touhou.

Thanks for the great guide Haze - no tricks I didn't know, but you do great commenting and documentation to help explain!
User avatar
Nightraven
Wanderer
Wanderer
Posts: 3
Joined: Wed Mar 22, 2023 11:50 pm

Re: Hazefest's Written AHK Guide for Eden.

I see in your scripts that you have your melee styles and spells bound to the "f1, f2..." keys and so forth. How do you do that? I have all my styles on my main bar so they are just 1,2,3,4... etc. I seem to be overlooking something. For example if i want to use the key 5 for my script, to fire off hotbar styles that are on 5,6,7. It runs into issues since 5 is on my hotbar and has a style on it.
User avatar
SgtGator83
Wanderer
Wanderer
Posts: 2
Joined: Thu Dec 08, 2022 6:08 pm

Re: Hazefest's Written AHK Guide for Eden.

/qbind will let you set keybinds to your quickbar slots
User avatar
Drow
Wanderer
Wanderer
Posts: 1
Joined: Sun Apr 02, 2023 8:41 am

Re: Hazefest's Written AHK Guide for Eden.

Hello,

I've played on several private servers over the past few years using ahk to be able to use the numpad for the bars (I'm left handed and use the arrows to move around) but lately it hasn't worked.

qbind does not really work since the up, down, left, right arrows are also used for the numpad and pressing Numpad2 makes the character move backwards which therefore never casts.

My script was like this when i played on the other servers between 2012 and 2018 :

______________________
Ifwinexist daoc2001...

Numpad1::&
Numpad2::é
Numpad3::"
Numpad4::'
Numpad5::(
Numpad6::§
Numpad7::è
Numpad8::!
Numpad9::ç
Numpad0::Space
PgDn::Numlock
Up::z
Down::s
Left::q
Right::d
______________________

Now it works on windows (for example if i use the up down left right keys in a text file it displays zqsd) but when i launch the game it no longer works. I tried with ahk 2.0 and 1.xx

So I tried this :
______________________________________
;Rebind Keyboard

RETURN
#UseHook
#IfWinActive, ahk_class DAoCMWC
#MaxThreadsPerHotkey 1
#MaxHotKeysPerInterval 200
#NoEnv

Numpad1::&
Numpad2::é
Numpad3::"
Numpad4::'
Numpad5::(
Numpad6::§
Numpad7::è
Numpad8::!
Numpad9::ç
Numpad0::Space
PgDn::Numlock
Up::z
Down::s
Left::q
Right::d

#UseHook off
____________________________________

It doesn't work in game and when I press the keys that should be swapped in notepad they don't.

Can you help me ?
User avatar
TyGeR
Esquire
Esquire
Posts: 22
Joined: Mon Jan 02, 2023 5:10 pm

Re: Hazefest's Written AHK Guide for Eden.

I to play using the numberpad and arrow keys. I am able to rebind arrow keys for movement inside game with no issues. I use this to set my numberpad keys to work as the number bar. If your still having problems PM me on discord an Ill help you out the best I can.

Numpad1::
{
Send 1
}
return

Numpad2::
{
Send 2
}
return

Numpad3::
{
Send 3
}
return

Numpad4::
{
Send 4
}
return

Numpad5::
{
Send 5
}
return

Numpad6::
{
Send 6
}
return

Numpad7::
{
Send 7
}
return

Numpad8::
{
Send 8
}
return

Numpad9::
{
Send 9
}
return

NumpadDot::
{
Send 0
}
return
User avatar
Druth
Esquire
Esquire
Posts: 17
Joined: Mon Sep 05, 2022 10:49 am

Re: Hazefest's Written AHK Guide for Eden.

I have a problem with:

$1::
{
send, 1
send, {f7}
}
return

1 is mez
F7 is cure mez

When I target friends, I can que up the cure mez, so it double casts.
When I target enemies, it doesn't que up double cast.

Same goes for all friendly spells, all que up nicely double cast.
But all enemy targeted spells, with a friendly spell macroed in, it only single casts.

Is that just how it is, or is my script bad?
User avatar
goodkitty
Wanderer
Wanderer
Posts: 1
Joined: Thu Jan 25, 2024 6:51 pm

Re: Hazefest's Written AHK Guide for Eden.

Issues with skald script..

I'm not sure if its hooking to the client or not. Anyhow I changed it to just loop thru my alt + 1- whatver keys for group b uffs (for now still learninig the class as thats all iwant to automate)

I changed it up like this:
My goal is to launch the script, press p then press = to suspend. Am i doing this right? When i look at the AHK screen itself nothing is happeninig. Should i delete that Return at the very top? under skald? maybe its looping there?


;Skald

RETURN
#UseHook
#IfWinActive, ahk_class DAoCMWC
#MaxThreadsPerHotkey 1
#MaxHotKeysPerInterval 400
#NoEnv

;toggle (pauses and resumes script)
+=::
Suspend,toggle
return



;Battle Chants
!p::
{
Send, \
Send, ,
Send, ,
Send, ,
Send, [
Send, ,
Send, ,
Send, ,
Send, {alt down}{1}{alt up}
Send, ,
Send, ,
Send, ,
Send, {alt down}{2}{alt up}
Send, ,
Send, ,
Send, ,
Send, {alt down}{3}{alt up}
Send, ,
Send, ,
Send, ,
Send, {alt down}{4}{alt up}
Send, ,
Send, ,
Send, ,
Send, {alt down}{5}{alt up}
Send, ,
Send, ,
Send, ,
Send, {alt down}{6}{alt up}
Send, ,
Send, ,
Send, ,
Send, {alt down}{7}{alt up}
}
return





;Suspend when typing
~NumpadEnter::
~+Enter::
~Enter::
Suspend, Toggle
ToolTip, % A_IsSuspended ? "Script Suspended" : ""
Return

;Other keys that open chat /commands, console, r reply key
~NumpadDiv::
~/::
~'::
~r::
Suspend, On
ToolTip, Script Suspended
Return

;Escape closes chat window
~esc::
Suspend, Off
ToolTip
Return

;control v windows default paste command
$^v::
Suspend, Permit
if A_IsSuspended
SendInput, % Clipboard
Return

#UseHook off
User avatar
Nahuryl
Wanderer
Wanderer
Posts: 5
Joined: Fri Oct 14, 2022 10:43 pm

Re: Hazefest's Written AHK Guide for Eden.

Hazefest wrote: Fri Jan 27, 2023 2:42 pm Hello.

I made this for many players wanting to know more about AutoHotKey and for players currently not happy with their scripts and want to look over how someone that has been using AHK for a while and doing additional research to improve upon the scripts.

All of my AHK information is at your disposal.

Here is my Eden Google Drive with all my AHK scripts and this written Guide as well.
https://drive.google.com/drive/u/1/fold ... TTITPHq9Kb

Here is a Eden AHK basic's video for newer users or players that are considering AHK.
https://www.youtube.com/watch?v=9cOU6V1hmUI

Here is the link to this written guide on my Eden Google Drive.
https://docs.google.com/document/d/1Azk ... share_link

Hopefully this will be useful for some of you.

Eden AutoHotKey Guide

This is a guide geared towards newer users and even some adept users like myself. I am not a master of all things AHK, but I do enjoy sharing what I have learned with players like you. Use the Table of Contents to move around this document and take what you need.

NOTES:
  • This works for players with US QWERTY keyboard layouts best.
    IF you have a DUAL LANGUAGE keyboard you may have to put in extra work to get this working properly.
    Make sure to run Camelot.exe and the Eden Launcher as Administrator from the Eden installation location.
Installing AutoHotKey
  • Download the latest version of AHK here: https://www.autohotkey.com/

    Click “Download Current Version (1.1)” and it will download the .exe file.

    Run the .exe file. Click on Install/Upgrade 64-bit.

    Click “Run AutoHotKey”. Close the AutoHotKey Help window that appears.

    Reboot your PC before proceeding.
After rebooting. Check to see if you can create a new AHK script. Right click>New>AutoHotKey Script. If you see this you have installed AHK.


Now you are ready to begin your first AHK script.


Why use AutoHotKey?
  • Improve reaction time.
    Perform tedious actions with less mistakes.
    Help players fumble keys less by pressing the right keys for you.
    Swap main and offhand weapons at the same time with one key press.
    Assist in RvR combat jitters.
    Counter UI jankiness due to the older game’s User Interface.
    Mindless press 1 key when farming while watching TV/working.
    Reduce button presses from 30+ keys on some classes down to 5-6 keys.
    Assist players with disabilities.
    Increase player E-peen.
    Play a class better.
    Control your character/pets/siege weapons/chants/styles with ease and less stress.
    Apply poisons to multiple weapons in a split second.
    Allow you to copy and paste sources or text into DAoC chat.


Understanding/reading what the strings do.
This is a small string. I will break it down on the right

Normal String

;Cast DD{PgDn} Solo
Xbutton1::
{
Send, f{PgDn}
}
return




Breakdown

;Cast DD{PgDn} Solo
Any line beginning with ; is ignored by the script logic. Semicolons can be used to make notes in your script.
Casts a spell using a “Page Down” /qbind

Xbutton1::
This is the key/button you press to use the string.
Pressing a side mouse button uses the shown string.

{ {
Send, f{PgDn} or Send, f
} Send, {PgDn}
}
This is a full string. I have written it two ways. The string begins with { and ends with }. Everything in between these two brackets is the “string”
Send is the command to press the keys F and Page Down.
F is face. Page Down is the Nightshade ranged spell cast.

return

This is the command in AHK that closes a string off and prevents your strings crossing one another.




Hazefest’s AutoHotKey Script Vault

Busy? Lazy? Just want a script? No matter your reason I got you fam! Below is a link to my AHK script vault. Some of these are complex like the Nightshade script. Some are simple like the melee DPS scripts. I do not have scripts for all classes yet unfortunately.

Link to Hazefest's AutoHotKey Script Vault
https://drive.google.com/drive/folders/ ... share_link

AutoHotKey Melee Style Basics
The way that styles work with AHK is that you can only use two style chains on a single key.
A style chain is your conditional/positional/anytime styles.

Parry, Block, Evade, Target Fumbles, Target Blocks, Target Parries, Target Evades, Side, Back, Front, and Anytime styles and each of their follow ups are considered one chain each.

Each of these examples is a real single key press AHK string using the melee styles below.

Example 1
Kinetic Blade>Lunging Blade>Return Blade is a Parry chain.
Solar Flare> Hurricane is an Anytime chain

Example 2
Cobra>Taipan>Copperhead>Viper is a Block chain.
Anaconda>Tiger Snake>Kingsnake is a Parry Chain

Example 3
Aurora Borealis> Icy Brilliance> Snowsquall is a Back chain
Demolish>Frost Hammer is a Side chain

NOTES:
  • You can mix and match any of the style chains.
    /stick and /face will work with these. /stick is better.
    Weapon swapping before the styles will work with the strings
    Instant cast spells can be used with styles in the same string.
    You must use the follow up styles before the conditional/positional/anytime styles as shown in the example above.
    Anytime styles are always last in the send string.
.
Full AHK Key List
This has all the AHK keys written out as they would be used in your AHK scripts. This is for reference when making your own scripts.
Source: https://www.autohotkey.com/docs/KeyList.htm

Hazefest’s AHK Strings (Copy and Paste)
Create your own scripts from strings below.

In this portion of this guide you can copy and paste sections at your leisure to fit the situation you intend to create. I write the script like this so they are easier to read/change.

Required code for building any DAoC AHK Scripts (start with this)
________________________________________
;Name of script

RETURN
#UseHook
#IfWinActive, ahk_class DAoCMWC
#MaxThreadsPerHotkey 1
#MaxHotKeysPerInterval 200
#NoEnv

;Paste your strings here. Delete this line.

#UseHook off
________________________________________

#UseHook Is the beginning of the script

#UseHook off is the end of the script. ALL strings go in between these two lines.

Basic Melee String

;Stick+{f1}, Leaper{=} & Hamstring{f2} or Achilles Heel{right} & Garrote{f3}, Instant DD{PgUp}
$1::
{
Send, {Shift down}{f1}{Shift up}
Send, {=}
Send, {f2}
Send, {right}
Send, {f3}
Send, {PgUp}
}
return
________________________________________
In this basic string I set Stick, Leaper, Hamstring, Achilles Heel, Garrote, and an instant cast spell to my One key. /qbinds are marked as { } following the styles/skills I am using in this string.

Toggle the AHK script on and off

Simple

;toggle (pauses and resumes script)
=::
Suspend,toggle
return
________________________________________
This simple on/off toggle uses = key to suspend or resume the script manually.

Complex on/off toggles when typing automatically

;Suspend when typing
~NumpadEnter::
~+Enter::
~Enter::
Suspend, Toggle
ToolTip, % A_IsSuspended ? "Script Suspended" : ""
Return

;Other keys that open chat /commands, console, r reply key
~NumpadDiv::
~/::
~'::
~r::
Suspend, On
ToolTip, Script Suspended
Return

;Escape closes chat window
~esc::
Suspend, Off
ToolTip
Return
________________________________________
NOTE: US QWERTY and MMO /keyboard setup in DAoC may be required.
This set of strings will suspend the script if you press Enter, Shift Enter, Numpad Enter, Numpad /, /, ‘, or R keys to type into chat. Pressing Enter to send the chat or Escape to cancel chat will resume the script for you.

Ever want to paste something into DAoC chat? Try this.

;control v windows default paste command
$^v::
Suspend, Permit
if A_IsSuspended
SendInput, % Clipboard
Return
________________________________________
This string will allow you to paste copied text into the chat within DAoC.

Main Hand and Offhand weapon swapping

;Weapon swap slots 1-2
$6::
{
Send, {Shift down}z{Shift up}
Send, {Ctrl down}e{Ctrl up}
}
return
________________________________________
The $ on the 6:: just means #UseKeyboardHook. It's a redundancy for #UseHook
{Shift down} tells the logic to press and hold the key down. (This works for Shift/Control/Alt)
{Shift up} releases the held down key. (This works for Shift/Control/Alt)

Weapon Swap macro between 1h and 2h
z::
toggle := !toggle
send % toggle ? "b" : "n"
Return
________________________________________
Pressing :Z:: will toggle between pressing B and N.

Basic Friendly/Enemy Target Caster String

;Mez and demez
$3::
send, f
send, {f9}
send, {f11}
return
________________________________________
Press 3 to /face, cast enemy spell /bind to F9, cast friendly spell /qbind to F11.

Poison Weapon Script

;Poison Weapon Sets 1, 2, & 3 Lethal{f11} Infection{f9} Con/wep skill{end} Str{\}
$+q::
{
Send {f11}
Send {end}
Send {Shift down}z{Shift up}
Send {Ctrl down}e{Ctrl up}
Send {f9}
Send {end}
Send o
Send [
Send {\}
Send {f11}
Send k
Send z
Send {f11}
Send {f9}
}
return
________________________________________
Shift Q fires this string. Requires /switch macros /qbind Shift Z, Control E, O, [, K, and Z to to swap weapons. Poisons are /bind to F11, F9, End, and \.
This is a long string and may require adding dead keys in between each Send.

Swap Instrument and play song

;Speed Song
!1::
send, h
send, {f5}
return
________________________________________
Alt 1 fires the string. H equips the instrument. F5 is /qbind to song.

Ranger/Hunter Speed with Sprint

;Sprint {v}, Greater Forest Shadow {f11}
Z::
send, v
send, {f11}
return
________________________________________
Press Z. Sprint with V and use Run speed spell F11

Original Archery Auto-fire Crit Shot and reload.

;Face {f}, Swap Melee {b}, Swap Bow {h}, Crit Shot {f9}, Auto Fire and Reload {h}
Xbutton1::
send, f
send, b
send, {h down}{h up}
send, {f9}
send, {[ down}{[ up}
send, {k down}{k up}
return
________________________________________
Press Side mouse button. Faces target. Swaps Melee B, Swaps Bow H, Critshot F9, auto fire [, auto reload K. Useful as opener on Archer class.

Animist Shroom cast and place
;Face {f}, Reset Camera {Numpad5}, Place ground target w/ mouse{del}, and Summon Turret pet {f2}
Xbutton1::
send, .
send, {Numpad5 down}{Numpad5 up}
send, {f2}
send, {del}
return
________________________________________
Side mouse button. Changes mouse cursor to GT icon Delete. Place GT. Shroom appears F2.

All Paladin/Skald chants.
;Chants
Xbutton1::
{
Send, {Ctrl down}{f1}{Ctrl up}
Send, {Ctrl down}{f2}{Ctrl up}
Send, {Ctrl down}{f3}{Ctrl up}
Send, {Ctrl down}{f4}{Ctrl up}
Send, {Ctrl down}{f5}{Ctrl up}
Send, {Ctrl down}{f6}{Ctrl up}
Send, {Ctrl down}{f7}{Ctrl up}
Send, {Ctrl down}{f8}{Ctrl up}
Send, {Ctrl down}{f9}{Ctrl up}
Send, {Ctrl down}{f10}{Ctrl up}
Send, {Ctrl down}{f11}{Ctrl up}
Send, =
}
return
________________________________________
Side mouse button. Fires all Pally chants. May require adding dead keys in between each Send.




Thanks for cheating share. #shame
Post Reply