View previous topic :: View next topic |
Author |
Message |
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Fri Apr 13, 2018 2:36 am Post subject: create object and add the handler [help] |
|
|
Can Lua create an object and add the handler?
Thanks!
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
|
Back to top |
|
|
MateeJr GT Advanced Cheater Reputation: 0
Joined: 24 Dec 2017 Posts: 66
|
Posted: Fri Apr 13, 2018 5:22 am Post subject: |
|
|
Heh bro a , gimana buat confuser? Gw nanya nanya At0ms and FreeER And Corroder , yang master pun ga tau
_________________
Hi Lynxz Gaming |
|
Back to top |
|
|
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Fri Apr 13, 2018 7:03 am Post subject: |
|
|
FreeEr what if the object is Checkbox and how to make the OnChanged event handler?
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Fri Apr 13, 2018 7:11 am Post subject: Re: create object and add the handler [help] |
|
|
Lynxz Gaming wrote: | Can Lua create an object... |
Yes
Lynxz Gaming wrote: | ...and add the handler?... |
bumble bee tuna
Lynxz Gaming wrote: |
FreeEr what if the object is Checkbox and how to make the OnChanged event handler? |
Why not just ask "How do I add an OnChanged event to a Checkbox in Lua"?
Or if you can access google:
https://www.google.com/search?q=cheat+engie+OnChanged+Checkbox
_________________
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Fri Apr 13, 2018 7:16 am Post subject: |
|
|
same way
local whatever = createWhatever()
whatever.OnEventName = function(sender) ... end
As for finding all the event names (and which are supported) I don't have a good source for that other than looking in the form editor inside CE or possibly this portion of the CE source https://github.com/cheat-engine/cheat-engine/blob/10a7e6ba6d8cd4f2f4b3f1d6f77bf8d9b850045f/Cheat%20Engine/ceguicomponents.pas
Some events also pass additional arguments (like OnKeyPress), again I don't know any good way to figure those out other than just letting the form editor create one for you to see (or googling that specific event or test with var args and print them out with tostring to see what you get).
_________________
|
|
Back to top |
|
|
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Fri Apr 13, 2018 7:33 am Post subject: |
|
|
FreeER wrote: | same way
local whatever = createWhatever()
whatever.OnEventName = function(sender) ... end
As for finding all the event names (and which are supported) I don't have a good source for that other than looking in the form editor inside CE or possibly this portion of the CE source https://github.com/cheat-engine/cheat-engine/blob/10a7e6ba6d8cd4f2f4b3f1d6f77bf8d9b850045f/Cheat%20Engine/ceguicomponents.pas
Some events also pass additional arguments (like OnKeyPress), again I don't know any good way to figure those out other than just letting the form editor create one for you to see (or googling that specific event or test with var args and print them out with tostring to see what you get). |
Thx worked!
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
|