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 Make A button Create A Form

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials
View previous topic :: View next topic  
Author Message
SrmsReis
How do I cheat?
Reputation: 0

Joined: 28 Feb 2021
Posts: 7
Location: Brazil

PostPosted: Mon May 03, 2021 9:11 am    Post subject: How Make A button Create A Form Reply with quote

I wanna make a script that when I press a button it gonna create a form
but idk what is the function of the button click
Back to top
View user's profile Send private message
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Mon May 03, 2021 10:07 am    Post subject: Reply with quote

You reached the wrong section for the question.
Probably, the managers will take the trouble of moving this post to the right place.
Here is an example of your question;

Code:
UDF1.CEButton1.OnClick=function()

if f then f.destroy() end
f=createForm()
local bx1 = createButton(f)
bx1.Height = 30
bx1.Left = 100
bx1.Top = 100
bx1.Width = 100
bx1.caption = "Click Me"
bx1.OnClick=function()
showMessage("Hello Lua!");
end

end
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 Tutorials -> LUA Tutorials 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 cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites