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 


Open other CT file (added in form) while password is true

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

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Tue May 19, 2015 2:42 am    Post subject: Open other CT file (added in form) while password is true Reply with quote

Hi guys,

I made a simple password form, use to get confirmation before open other CT file (Main CE Trainer) if password is correct.

I want if password is correct, it will launch test_02.CT (Main CE Trainer) which already added in password trainer form and i want to launch test_02.ct not from specific path in a computer, so it will able to use in other computers.

Here is code :
Code:

form_show (Pass_FORM)
xmplayer.playXM( findTableFile('k2.xm') )

pass_01 = "Corroder secret"

function CEButton1Click(sender)
pass_02 = control_getCaption(Pass_FORM.CEEdit_Password)
 if pass_01==pass_02 then
  xmplayer_stop()
  closeCE();                  <---- launch test_02.CT file here
  return caHide
 else
  control_setVisible(Pass_FORM.CELabel_Pass_Message, true)
  control_setCaption(Pass_FORM.CELabel_Pass_Message,"Wrong Password..")
 end
end

control_setVisible(Pass_FORM.CELabel_Pass_Message, false)
control_setCaption(Pass_FORM.CELabel_Pass_Message," ")
control_setCaption(Pass_FORM.CEEdit_Password,"Enter your password.. ")


Is it probably to use this function ? :
Code:

function LaunchClick()
local filetolaunch=openDialog_execute(CETrainer_OD)
if filetolaunch~='' then
local f = shellExecute(filetolaunch);
end
end   


Hope some one can help to give a solution.

Regards



Capture2.JPG
 Description:
 Filesize:  20.15 KB
 Viewed:  2869 Time(s)

Capture2.JPG



Capture1.JPG
 Description:
 Filesize:  35.34 KB
 Viewed:  2869 Time(s)

Capture1.JPG


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