The Tibia community is fiercely divided on AHK.

CipSoft (the developers) has historically taken a hardline stance: Any external tool that gives an unfair advantage is illegal. However, enforcement varies wildly, leading to confusion.

To craft 10 runes while holding down a key:

#IfWinActive, ahk_class TibiaClient
~Space::
   While GetKeyState("Space", "P")
Send, F3   ; Use mana fluid on yourself (bind to F3)
      Sleep, 100
      Send, F4   ; Cast rune spell (e.g., "adori vita" for UH rune)
      Sleep, 1050  ; Slightly longer than spell cooldown
return
#IfWinActive

If you hate reaching for F1-F12, rebind your numpad to function keys.

Numpad7::Send F1
Numpad8::Send F2
Numpad9::Send F3
Numpad4::Send F4
Numpad5::Send F5
Numpad6::Send F6
Numpad1::Send F7
Numpad2::Send F8
Numpad3::Send F9
Numpad0::Send F10