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 


Cannot set 'OnSelectionChange' function

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Apr 11, 2013 8:41 am    Post subject: Cannot set 'OnSelectionChange' function Reply with quote

Hey,
I'm working on a bit hard project for myself.
Importing hacks from server,
Right now I'm working on a ListBox.
I want it to display a different hacks descriptions on selection change.
But this:
Code:
control_OnSelectionChange(List,OnSelectionChange)

Which returns this error:
Code:
Error:[string "-- The import trainer file..."]:69: attempt to call global 'control_OnSelectionChange' (a nil value)

Is the code wrong?
if not, can you add it?
I need it, lots of work to do...

P.S
I got the name via form designer I saw the action name and tried.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Thu Apr 11, 2013 8:50 am    Post subject: Reply with quote

control_OnSelectionChange is not defined, only the disassemblerview has that explicitly defined

To set a property not explicitly exported use
Code:

setMethodProperty(class, propertyname, function)

E.g. setMethodProperty(List, "OnSelectionChange", OnSelectionChange)

_________________
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
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Apr 11, 2013 8:56 am    Post subject: Reply with quote

Oh I see!
Thanks! Smile
Probably will have lots of more help, and would like you to test the final release when it will be done.

And answering me this
http://forum.cheatengine.org/viewtopic.php?t=564195
Would help. Razz

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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