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 delete objects created on the form?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1549

PostPosted: Thu Apr 09, 2020 7:12 pm    Post subject: How to delete objects created on the form? Reply with quote

Hi
Let me give an example to the question;
I created dozens of objects in the UDF1 table, such as "createPanel (UDF1)".
I can't reset the objects I created without opening the form designer.
How can I delete the created objects without opening the form designer?
Is there a way to do this?

all createObject.Destroy() ?

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Thu Apr 09, 2020 10:27 pm    Post subject: Reply with quote

Code:
function object_wiper()
 while UDF1.ControlCount > 0 do
  local control= UDF1:getControl(0)
  control:destroy()
 end
end

object_wiper()

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1549

PostPosted: Fri Apr 10, 2020 8:28 am    Post subject: Reply with quote

Corroder wrote:
Code:
function object_wiper()
 while UDF1.ControlCount > 0 do
  local control= UDF1:getControl(0)
  control:destroy()
 end
end

object_wiper()


Thanks.
This UDF1 and "createObject" clear all additions.
"CEObject" would be better if the original parts were not deleted.
Now I will adapt my table according to this code. Smile
I will match this code with ".luac".

Thanks again for this code @Corroder.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Fri Apr 10, 2020 9:52 am    Post subject: Reply with quote

#Aylin, nvm. Anyhow, out of topic, I have a question for CEF admins. Who is proB1 ?. Seems he did mess posts everywhere. I mean he often posts something and then suddenly deletes the posts. It makes a mess.
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1549

PostPosted: Fri Apr 10, 2020 10:47 am    Post subject: Reply with quote

Corroder wrote:
#Aylin, nvm. Anyhow, out of topic, I have a question for CEF admins. Who is proB1 ?. Seems he did mess posts everywhere. I mean he often posts something and then suddenly deletes the posts. It makes a mess.



A normal user.
https://forum.cheatengine.org/search.php?search_author=ProB1

My guess is that he made a wrong action on the latest DB's broadcast and made a mistake.
On the homepage, there is always a notification for this post.
https://forum.cheatengine.org/viewtopic.php?t=586784

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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