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 


Adhesion forms (LUA console,CE 6.1 RC1)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
GH*master
Expert Cheater
Reputation: 8

Joined: 10 Jan 2008
Posts: 159

PostPosted: Mon May 23, 2011 3:35 am    Post subject: Adhesion forms (LUA console,CE 6.1 RC1) Reply with quote

1. How can I attach to the events of the main form of CE?

I need to get my new form (magicPanel = createForm(true)) followed the main form of CE (mainForm = getMainForm()), when the main form CE is moves.

2. How can I attach to the event "OnChangeBounds" of the new my forms from LUA engine console (not from IDE LUA)?

Code:

function FormChangeBounds(sender)
 showMessage("ho-ho-ho")
end

mainForm = getMainForm()
control_setCaption(mainForm, "CE 5.6.1 CR1 the magic click")
control_onClick(mainForm, FormChangeBounds) -- err, Why???
control_OnChangeBounds(mainForm,FormChangeBounds) -- err because Event does not exist

magicPanel = createForm(true)
control_onClick(magicPanel, FormChangeBounds) -- is work
control_OnChangeBounds(magicPanel,FormChangeBounds) -- err because Event does not exist


I write everything in the LUA console. This is mandatory.



23.05.png
 Description:
 Filesize:  123.66 KB
 Viewed:  4308 Time(s)

23.05.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Mon May 23, 2011 4:07 am    Post subject: Reply with quote

1:
You could try using a timer....
I'll see about adding this feature

2:
onChangeBounds is an ide only property for now

But why is the lua console mandatory? (besides the fact that next version breaks all tables with forms)
The forms created with the ide are directly accessible to the lua console (for the events to trigger there, close the designer panel first)

Quote:
control_onClick(mainForm, FormChangeBounds) -- err, Why???

No error for me, it of course won't react to clicks because the clickable region of the form is overlapped with a panel.
You could add the onclick to that panel though (Objectname is Panel5 , there is a lua function that can retrieve this object for you)

_________________
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
GH*master
Expert Cheater
Reputation: 8

Joined: 10 Jan 2008
Posts: 159

PostPosted: Mon May 23, 2011 10:46 am    Post subject: Reply with quote

Thank you. I needed your comments and description of the situation. I will finish this task with a timer.

Sorry, I can not answer your questions because I'm afraid to confuse you about my view the situation. My poor English prevents me from expressing my ideas.

I'll be back later...
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 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