how to get name of function running Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
joefiesta
Posts: 497
Joined: 24 Jan 2016, 13:54
Location: Pa., USA

how to get name of function running

Post by joefiesta » 08 Dec 2022, 11:32

my main script, Multi.ahk, invokes a function from my function library.

How do I get the name of the function itself from within the function?

A_scriptname returns the names of the executable, Multi.ahk.

guest3456
Posts: 3463
Joined: 09 Oct 2013, 10:31

Re: how to get name of function running

Post by guest3456 » 08 Dec 2022, 11:39

A_ThisFunc


joefiesta
Posts: 497
Joined: 24 Jan 2016, 13:54
Location: Pa., USA

Re: how to get name of function running  Topic is solved

Post by joefiesta » 10 Dec 2022, 16:00

duh, thanks!!!

but, like always, I have to complain.

This only points out how ahk is inconsistent in soooooooooo many ways.
There is a_scriptname. Then there should be a_funcname or (better) a_functionname. but, no......

or the other way around,, of course: a_ThisScript, a_ThisFunction

Post Reply

Return to “Ask for Help (v1)”