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 


Help with script pls lua

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Mobie
Cheater
Reputation: 0

Joined: 10 Feb 2011
Posts: 43

PostPosted: Thu Jan 31, 2019 8:46 am    Post subject: Help with script pls lua Reply with quote

Hey i want to add a second "About" button in my trainer how i can this? what the script for this?

And how i can add a button to on/off cheat engine music player?

thanks in adv
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Thu Jan 31, 2019 11:39 am    Post subject: Reply with quote

Start with this idea Wink

form = createForm(true)
form.Position = poDesktopCenter
form.Width = 320
form.Height = 240

p4 = createButton(form)
p4.Height = 40
p4.Left = 5
p4.Top = 190
p4.Width = 310
p4.Font.Size = 12
p4.Font.Style = "fsBold"
p4.Caption = 'About Click'

p4.OnClick = function() --function CEButton1Click(sender)
showMessage("Thanks for Donations!")
shellExecute("https://www.paypal.com/xclick/business=dark_byte%40hotmail.com&no_note=1&tax=0&lc=US") --Donations URL
end

_________________
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: 1667

PostPosted: Thu Jan 31, 2019 7:43 pm    Post subject: Reply with quote

Another example :

Code:
about_text = [[
This trainer made by Mr.Donald 'Trump' Duck.
Using Cheat Engine
Any complains while using this trainer, please contact :
- [email protected]
- [email protected]

Washington DC, Feb.1, 2019"
]]

function showText()
showMessage(about_text)
end

x=0

function musicIO()
  if(x==0)then
    xmplayer.playXM( findTableFile('k2.xm') )   ---- add xm music file to your table
    p5.caption = 'Stop Music'
    x=1
  else
    xmplayer_stop()
    p5.caption = 'Play Music'
    x=0
  end
end


form = createForm(true)
form.Position = poDesktopCenter
form.Width = 320
form.Height = 240
form.caption = 'Show About'

p4 = createButton(form)
p4.Height = 40
p4.Left = 5
p4.Top = 130
p4.Width = 310
p4.Font.Size = 12
p4.Caption = 'About Click'

p5 = createButton(form)
p5.Height = 40
p5.Left = 5
p5.Top = p4.top + p4.height + 10
p5.Width = 310
p5.Font.Size = 12
p5.caption = 'Play Music'

form.show()

p4.onClick = showText
p5.onClick = musicIO

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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 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