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 


How to create a Pass.. only the 1st time

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
FIRESKY
Cheater
Reputation: 0

Joined: 01 Mar 2017
Posts: 34

PostPosted: Fri Aug 03, 2018 11:48 am    Post subject: How to create a Pass.. only the 1st time Reply with quote

Hi guys, I was using this fully functional script,
But what I would like to try to do is create a password that is only asked the first time you open the trainer, and then never again.

local value = inputQuery("Login", "pass", "h pass...")
if value ~= "bla bla bla" then
showMessage("wrong")
closeCE()
else
showMessage("well")
end
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Fri Aug 03, 2018 1:11 pm    Post subject: Reply with quote

either create a file or a registry setting etc. whenever it's answered, then first check that to see if it's been asked or not, if it's not there then it wasn't asked, if it is then it was.
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
FIRESKY
Cheater
Reputation: 0

Joined: 01 Mar 2017
Posts: 34

PostPosted: Fri Aug 03, 2018 1:21 pm    Post subject: Reply with quote

some examples?
I thought it could be done with a simple script in addition to this.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Fri Aug 03, 2018 2:18 pm    Post subject: Reply with quote

https://www.tutorialspoint.com/lua/lua_file_io.htm

As for checking if a file exists, there's not really any provided way in lua other than just trying to open the file in read mode and seeing if you can or not. You can google "lua file exists" to find copy-able functions for that.

As for the registry see: https://forum.cheatengine.org/viewtopic.php?p=5549713#5549713

_________________
https://github.com/FreeER/ has a few CE related repos
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