Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Tue May 19, 2015 2:42 am Post subject: Open other CT file (added in form) while password is true |
|
|
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
Description: |
|
Filesize: |
20.15 KB |
Viewed: |
2873 Time(s) |
|
Description: |
|
Filesize: |
35.34 KB |
Viewed: |
2873 Time(s) |
|
|
|