 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
GH*master Expert Cheater
Reputation: 8
Joined: 10 Jan 2008 Posts: 159
|
Posted: Mon May 23, 2011 3:35 am Post subject: Adhesion forms (LUA console,CE 6.1 RC1) |
|
|
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.
| Description: |
|
| Filesize: |
123.66 KB |
| Viewed: |
4309 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 472
Joined: 09 May 2003 Posts: 25867 Location: The netherlands
|
Posted: Mon May 23, 2011 4:07 am Post subject: |
|
|
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 |
|
 |
GH*master Expert Cheater
Reputation: 8
Joined: 10 Jan 2008 Posts: 159
|
Posted: Mon May 23, 2011 10:46 am Post subject: |
|
|
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 |
|
 |
|
|
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
|
|