Posted: Tue Apr 23, 2013 6:43 pm Post subject: How to obtain function name?
Hey Dark Byte,
How can I obtain the function names?
Like when you edit the form via C.E, and going to event tab, it displays all available functions.
How can I do the same?
I want to obtain it, display in Combo Box for this script
http://forum.cheatengine.org/viewtopic.php?p=5470519#5470519 _________________
I'm rusty and getting older, help me re-learn lua.
Joined: 09 May 2003 Posts: 25770 Location: The netherlands
Posted: Wed Apr 24, 2013 1:58 am Post subject:
Ce does it by parsing through the lua script looking for " function .... (" and then take the name from that.
In lua i think do this to get ALL the function names that are defined:
Code:
for i,f in pairs(_G) do
if type(f)=='function' then
print(i)
end
end
(you will find it's not that useful) _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
If we tweak it they way we want, it'll be useful =).
Thanks.
What I want to do is, to create an Listbox, display all the functions user has made (without C.E predefined functions), and let user set for it an hotkey =). _________________
I'm rusty and getting older, help me re-learn lua.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum