wolkenloser Posted March 19, 2006 Share Posted March 19, 2006 Hi, is it possible to get the functionname within a function ? Exists a macro for the functionname ? eg: TEST() FUNC TEST() MSGBOX(0,"FUNKTIONNAME", "The Called Funktionname is:" & @??????? ) ENDFUNC greetings Wolke Link to comment Share on other sites More sharing options...
GaryFrost Posted March 19, 2006 Share Posted March 19, 2006 Hi, is it possible to get the functionname within a function ? Exists a macro for the functionname ? eg: TEST() FUNC TEST() MSGBOX(0,"FUNKTIONNAME", "The Called Funktionname is:" & @??????? ) ENDFUNC greetings Wolke Far as I know, no But wouldn't that be redundant, being your writing the code, just add the function name in the msgbox etc... SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 19, 2006 Moderators Share Posted March 19, 2006 (edited) I know there is a DLL call for this, I've seen it, but I can't remember what it was. However I was thinking along the same lines as Gary:TEST() Func TEST() Local $CurentFunc = 'TEST' MSGBOX(0,"FUNKTIONNAME", "The Called Funktionname is:" & $CurentFunc ) EndFunc Edit: Code Tags Edit2: Looks like most others are using GetCurrentMethod. Edited March 19, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valuater Posted March 19, 2006 Share Posted March 19, 2006 i have put function names in a combo box the used $My_Func = guictrlread($Combo_Box) call($My_Func) 8) Link to comment Share on other sites More sharing options...
GaryFrost Posted March 19, 2006 Share Posted March 19, 2006 i have put function names in a combo boxthe used $My_Func = guictrlread($Combo_Box)call($My_Func)8)okay Val, I give what's that got to do with the price of bread? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valuater Posted March 19, 2006 Share Posted March 19, 2006 okay Val, I give what's that got to do with the price of bread?just an idea... a possible direction...an alternative option...because you guys believe the WAY he wants to achieve this... wont work.... and its the price of tea.. no???8) Link to comment Share on other sites More sharing options...
GaryFrost Posted March 19, 2006 Share Posted March 19, 2006 .... and its the price of tea.. no???8)Guess that depends on where your from.... yes??? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now