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 


Lua Script for Form

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

Joined: 02 Dec 2016
Posts: 2

PostPosted: Fri Dec 02, 2016 12:55 pm    Post subject: Lua Script for Form Reply with quote

Need a little assistance....

I created a .CETRAINER couple weeks ago using ce6.4, yesterday i wanted to add a splash screen saved in .exe that has a button. The button (onclick) will direct me to my .CETRAINER.

2 questions:
what lua script do i use in line 2?
example:
1 function CEButton1Click(sender)
2
3 end

Next question, when i go to save as my splash screen in .exe in the "Exe Trainer Generator" Do i add my .cetrainer in "extra Files" then generate?
or
how do i correctly attach my .cetrainer to my splash screen?

Thanks for any help in this matter.[/code]




/////////////////////////////////////////////////////////////////////////////////
PROBLEM SOLVED!

1 function CEButton1Click(sender)
2
3 end


//////////////////////////////////////////////////
use in line 2:

if TrainerOrigin~=nil then
path=TrainerOrigin
else
path=getCheatEngineDir()
end

--add dir seperator if needed
if string.sub(path,#path, #path)~="\\" then
path=path.."\\"
end

shellExecute(path.."XXXXXX.CETRAINER")





And I saved the .cetrainer in exe trainer generator in "File(s) then generated my splash .exe, now button works perfectly!
Back to top
View user's profile Send private message Send e-mail
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