EVE How do I cheat? Reputation: 0
Joined: 02 Dec 2016 Posts: 2
|
Posted: Fri Dec 02, 2016 12:55 pm Post subject: Lua Script for Form |
|
|
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!
|
|