Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How To Give A Lua Function To Tree View

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
gamers01
Cheater
Reputation: 0

Joined: 27 Sep 2013
Posts: 45

PostPosted: Fri Jul 04, 2014 2:07 pm    Post subject: How To Give A Lua Function To Tree View Reply with quote

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 Smile
Back to top
View user's profile Send private message
gamers01
Cheater
Reputation: 0

Joined: 27 Sep 2013
Posts: 45

PostPosted: Sat Jul 05, 2014 7:46 am    Post subject: Reply with quote

can u help me??????
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sat Jul 05, 2014 7:57 am    Post subject: Reply with quote

What do you mean
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
gamers01
Cheater
Reputation: 0

Joined: 27 Sep 2013
Posts: 45

PostPosted: Sat Jul 05, 2014 8:00 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Sat Jul 05, 2014 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
gamers01
Cheater
Reputation: 0

Joined: 27 Sep 2013
Posts: 45

PostPosted: Sat Jul 05, 2014 11:23 am    Post subject: Reply with quote

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
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Sat Jul 05, 2014 2:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Sat Jul 05, 2014 2:54 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
gamers01
Cheater
Reputation: 0

Joined: 27 Sep 2013
Posts: 45

PostPosted: Sat Jul 05, 2014 3:01 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Sat Jul 05, 2014 3:13 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
gamers01
Cheater
Reputation: 0

Joined: 27 Sep 2013
Posts: 45

PostPosted: Sat Jul 05, 2014 3:34 pm    Post subject: Reply with quote

can u give an example script for it i will be thanksfull
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Sat Jul 05, 2014 3:53 pm    Post subject: Reply with quote

here is an example
_________________
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
View user's profile Send private message MSN Messenger
gamers01
Cheater
Reputation: 0

Joined: 27 Sep 2013
Posts: 45

PostPosted: Sat Jul 05, 2014 4:58 pm    Post subject: Reply with quote

thanks can i get an example for speed hack in that way in tree view ? Smile
i want to make my new trainer with tree view so i want that
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Sat Jul 05, 2014 6:04 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
gamers01
Cheater
Reputation: 0

Joined: 27 Sep 2013
Posts: 45

PostPosted: Sat Jul 05, 2014 6:09 pm    Post subject: Reply with quote

it's ok no problem thanks for helping Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites