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 


need help how to add username/password to my trainer ?

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

Joined: 03 Feb 2017
Posts: 3

PostPosted: Fri Feb 03, 2017 9:44 am    Post subject: need help how to add username/password to my trainer ? Reply with quote

need help how to add username/password to my trainer ?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Feb 03, 2017 12:57 pm    Post subject: Reply with quote

Code:
local value = inputQuery("Login", "Enter your username and password:", "username:password")
if value ~= "zanzer:rules" then
  showMessage("Well that was wrong...")
  closeCE()
else
  showMessage("He does, doesn't he?")
end
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Sat Feb 04, 2017 3:51 am    Post subject: Reply with quote

Im sorry i need to reply here. How do write a trainer and not know how to password protect it?

password protection is Really entry level.

_________________
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sat Feb 04, 2017 6:15 am    Post subject: Reply with quote

Maybe...


Code:
function keyHit(sender, key)
if key ~= '\r' then return key end
if editKey.Text ~= 'Corroder' and editKey1 ~= 'Test123' then
showMessage("Wrong Passport..Can't enter USA")
editKey.Text = ""
editKey1.Text = ""
return
else
showMessage("Who tell you the password ?")
lblkey.Visible = false
editKey.Visible = false
editKey1.Visible = false
Pnl.Visible = true
lbl2.Visible = true
return
end
end

MyForm = createForm(false)
MyForm.Height = 100
MyForm.Width = 300

Pnl = createPanel(MyForm)
Pnl.Height = 100
Pnl.Width = 300

lblkey = createLabel(Pnl)
lblkey.Top = 10
lblkey.Left = 10
lblkey.Caption = 'Input User Name / Password And Press ENTER :'

lbl2 = createLabel(Pnl)
lbl2.Top = 40
lbl2.Left = 120
lbl2.Caption = "My Trainer"
lbl2.Visible = false

editKey = createEdit(MyForm)
--setProperty(editKey,'EchoMode','emPassword')
editKey.Top = 30
editKey.Left = 10
editKey.Width = 100
editKey.OnKeyPress = keyHit

editKey1 = createEdit(MyForm)
setProperty(editKey1,'EchoMode','emPassword')
editKey1.Top = 60
editKey1.Left = 10
editKey1.Width = 100
editKey1.OnKeyPress = keyHit

MyForm.show()


Last edited by Corroder on Sat Feb 04, 2017 6:30 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Sat Feb 04, 2017 6:30 am    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?p=5687243#5687243
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sat Feb 04, 2017 3:55 pm    Post subject: Reply with quote

if they're using CE's trainer generator, that can be done without any coding knowledge, by any newbie.
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