![Documentation]((https://img.shields.io/badge/Full-Documentation-blue?style=plastic&logo=readthedocs)
This library uses AutoHotkey Version 2. (Tested with AHK v2.0-beta.1 x64 Unicode)
Function to get the current callstack, containing information like functionname, filename and linenumber of the function.
In a terminal or command line navigate to your project folder and type following command:
npm install AutoHotkey-V2/callstack.ahk.git
Include export.ahk
from the callstack.ahk
folder into your project using standard AutoHotkey-include methods.
#Include %A_ScriptDir%\node_modules\callstack.ahk\export.ahk
foo()
return
foo(){
cs := CallStack()
# Print the current callstack
for level, obj in CallStack() {
if (A_Index > 1 )
str := str . " => "
str := str . obj.function
}
OutputDebug str
}
For usage examples have a look at the files in the examples folder.
For more detailed documentation have a look into the full documentation