| View previous topic :: View next topic |
| Author |
Message |
gamers01 Cheater
Reputation: 0
Joined: 27 Sep 2013 Posts: 45
|
Posted: Fri Jul 04, 2014 2:07 pm Post subject: How To Give A Lua Function To Tree View |
|
|
HOW TO GIVE A FUNCTION TO TREE VIEW
I TRIED ALOT BUT ANYONE OF YOU CAN HELP ME SO THANKS ALOT
I REALLY NEED IT
|
|
| Back to top |
|
 |
gamers01 Cheater
Reputation: 0
Joined: 27 Sep 2013 Posts: 45
|
Posted: Sat Jul 05, 2014 7:46 am Post subject: |
|
|
| can u help me??????
|
|
| Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Sat Jul 05, 2014 7:57 am Post subject: |
|
|
What do you mean
_________________
|
|
| Back to top |
|
 |
gamers01 Cheater
Reputation: 0
Joined: 27 Sep 2013 Posts: 45
|
Posted: Sat Jul 05, 2014 8:00 am Post subject: |
|
|
in cheat engine 6.4 when u create a form so u can add a tree view so how can i give it function in lua
for example in list box u give function that
if UDF1.CEListBox1.ItemIndex==0 then
showMessage("OK")
end
but how can i make something like that in tree view so if i collapse the first item or subitem it should show a message or do anything else
| Description: |
|
| Filesize: |
4.45 KB |
| Viewed: |
12183 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25808 Location: The netherlands
|
Posted: Sat Jul 05, 2014 8:44 am Post subject: |
|
|
put it in the onCollapsing event
_________________
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 |
|
| Back to top |
|
 |
gamers01 Cheater
Reputation: 0
Joined: 27 Sep 2013 Posts: 45
|
Posted: Sat Jul 05, 2014 11:23 am Post subject: |
|
|
yeah but what should i write in lua?
if UDF1.CETreeview1.???????? <---- (what should i type in here) then
showMessage("OK")
end
for collapsing item and subitem i want to give them a function when i collapse them
|
|
| Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Sat Jul 05, 2014 2:43 pm Post subject: |
|
|
| gamers01 wrote: | yeah but what should i write in lua?
if UDF1.CETreeview1.???????? <---- (what should i type in here) then
showMessage("OK")
end
for collapsing item and subitem i want to give them a function when i collapse them |
| Code: |
UDF1.CETreeview1.onCollapsing = function ( self )
showMessage'OK'
end |
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25808 Location: The netherlands
|
Posted: Sat Jul 05, 2014 2:54 pm Post subject: |
|
|
just doubleclick on the event's blank space in the designer and it'll write the function header for you (it's not a default)
check the node to see if it's the node you're interested in
_________________
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 |
|
| Back to top |
|
 |
gamers01 Cheater
Reputation: 0
Joined: 27 Sep 2013 Posts: 45
|
Posted: Sat Jul 05, 2014 3:01 pm Post subject: |
|
|
SEE I WANT TO GIVE DIFFERENT FUNCTIONS FOR DIFFERENT ITEMS SO WHAT SCRIPT SHOULD I USE FOR THAT
THE SCRIP YOU GAVE IT GIVES FUNCTION TO ALL
I WANT DIFFERENT FUNCTIONS FOR EACH ITEMS
| Description: |
|
| Filesize: |
7.49 KB |
| Viewed: |
12120 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25808 Location: The netherlands
|
Posted: Sat Jul 05, 2014 3:13 pm Post subject: |
|
|
check the Index or AbsoluteIndex property of the node parameter
you can also use the Data property to store a unique identifier
_________________
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 |
|
| Back to top |
|
 |
gamers01 Cheater
Reputation: 0
Joined: 27 Sep 2013 Posts: 45
|
Posted: Sat Jul 05, 2014 3:34 pm Post subject: |
|
|
| can u give an example script for it i will be thanksfull
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25808 Location: The netherlands
|
Posted: Sat Jul 05, 2014 3:53 pm Post subject: |
|
|
here is an example
| Description: |
|
 Download |
| Filename: |
example.ct |
| Filesize: |
785 Bytes |
| Downloaded: |
753 Time(s) |
_________________
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 |
|
| Back to top |
|
 |
gamers01 Cheater
Reputation: 0
Joined: 27 Sep 2013 Posts: 45
|
Posted: Sat Jul 05, 2014 4:58 pm Post subject: |
|
|
thanks can i get an example for speed hack in that way in tree view ?
i want to make my new trainer with tree view so i want that
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25808 Location: The netherlands
|
Posted: Sat Jul 05, 2014 6:04 pm Post subject: |
|
|
I have no idea how a treeview could be used for that
_________________
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 |
|
| Back to top |
|
 |
gamers01 Cheater
Reputation: 0
Joined: 27 Sep 2013 Posts: 45
|
Posted: Sat Jul 05, 2014 6:09 pm Post subject: |
|
|
it's ok no problem thanks for helping
|
|
| Back to top |
|
 |
|