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 


I need help About the timer
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
EsmailGoda
Newbie cheater
Reputation: 0

Joined: 25 Sep 2020
Posts: 18

PostPosted: Thu Oct 08, 2020 10:04 am    Post subject: I need help About the timer Reply with quote

I need help

Why when closing coach
The Timer is closing


Is it on his way
When coach is completely closed
The timer is running

This is the code that need runs after shutting down the trainer
Code:

function UDF1_CEToggleBox5Change(sender)
if t then t.Destroy()end
t= createTimer()
t.Interval=1000
t.Enabled=false -- true
t.OnTimer = function()


I hope for help And not to close the topic
Back to top
View user's profile Send private message Send e-mail
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Thu Oct 08, 2020 12:04 pm    Post subject: Reply with quote

Do not close the Trainer, hide it.
Code:
UDF1.hide()

After the code has finished running, confirm the closing.

Code:
--Set a timer for shutdown.
if closed1 then closed1.Destroy() end
closed1= createTimer()
closed1.Interval=1000
closed1.Enabled = false

closed1.OnTimer = function()
UDF1.close()
return caFree
end

function UDF1_CEToggleBox5Change(sender)
if t then t.Destroy() end

sleep(300)
UDF1.hide()

t= createTimer()
t.Interval=1000
t.Enabled = true
t.OnTimer = function()
--code
--code
--code etc.
t.Enabled=false
closed1.Enabled = true
end
Back to top
View user's profile Send private message
EsmailGoda
Newbie cheater
Reputation: 0

Joined: 25 Sep 2020
Posts: 18

PostPosted: Thu Oct 08, 2020 12:18 pm    Post subject: Reply with quote

ByTransient wrote:
Do not close the Trainer, hide it.
Code:
UDF1.hide()

After the code has finished running, confirm the closing.

but I want Shut down the coach Completely
Because if not Shut down I will be discovered And ban Me from the game






ByTransient wrote:

Code:
--Set a timer for shutdown.
if closed1 then closed1.Destroy() end
closed1= createTimer()
closed1.Interval=1000
closed1.Enabled = false

closed1.OnTimer = function()
UDF1.close()
return caFree
end

function UDF1_CEToggleBox5Change(sender)
if t then t.Destroy() end

sleep(300)
UDF1.hide()

t= createTimer()
t.Interval=1000
t.Enabled = true
t.OnTimer = function()
--code
--code
--code etc.
t.Enabled=false
closed1.Enabled = true
end

Where do I place?


Last edited by EsmailGoda on Thu Oct 08, 2020 12:40 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Thu Oct 08, 2020 12:32 pm    Post subject: Reply with quote

If you just want a shutdown code, below;
Code:
function closeTrainer()
closeCE()
  return caFree
end


When you want to close the trainer, use the following command;
Code:
closeTrainer()

or ..
Put this on the close button.

Code:
function UDF1_CEButton1Click(sender)
closeTrainer()
end


or

Code:
UDF1.CEButton1.OnClick=function()
closeCE()
  return caFree
end
Back to top
View user's profile Send private message
EsmailGoda
Newbie cheater
Reputation: 0

Joined: 25 Sep 2020
Posts: 18

PostPosted: Thu Oct 08, 2020 12:43 pm    Post subject: Reply with quote

ByTransient wrote:
If you just want a shutdown code, below;
Code:
function closeTrainer()
closeCE()
  return caFree
end


When you want to close the trainer, use the following command;
Code:
closeTrainer()

or ..
Put this on the close button.

Code:
function UDF1_CEButton1Click(sender)
closeTrainer()
end



or

Code:
UDF1.CEButton1.OnClick=function()
closeCE()
  return caFree
end



I know this But when I do this
The timer stops too
Back to top
View user's profile Send private message Send e-mail
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Thu Oct 08, 2020 1:05 pm    Post subject: Reply with quote

You are asking the wrong questions.
The Trainer is turned off; It does not turn down the code.
So, even if the Trainer is completely shut down, the codes you changed will still exist in the game.

In the first code I gave; Trainer will be hidden, timer will continue running.
But after the timer code is active, the Trainer will be completely shut down.

You can also turn to alternative ideas.
Example: If the game detects CE after code change (or launches for a while),
Before this period expires, correct the code you have changed and reactivate it after a few seconds.
Or ideas like this.
Back to top
View user's profile Send private message
EsmailGoda
Newbie cheater
Reputation: 0

Joined: 25 Sep 2020
Posts: 18

PostPosted: Thu Oct 08, 2020 1:37 pm    Post subject: Reply with quote

ByTransient wrote:
You are asking the wrong questions.
The Trainer is turned off; It does not turn down the code.
So, even if the Trainer is completely shut down, the codes you changed will still exist in the game.

In the first code I gave; Trainer will be hidden, timer will continue running.
But after the timer code is active, the Trainer will be completely shut down.

You can also turn to alternative ideas.
Example: If the game detects CE after code change (or launches for a while),
Before this period expires, correct the code you have changed and reactivate it after a few seconds.
Or ideas like this.


I just need When the coach shut down
Not done The timer does not close

When the coach shut down All options are activated
but The only thing They are not activated Huh the timer
I do not know why

and ButI've seen someone When they close the private coach
The timer does not close
I don't know how he did this
Back to top
View user's profile Send private message Send e-mail
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Thu Oct 08, 2020 2:06 pm    Post subject: Reply with quote

EsmailGoda wrote:

When the coach shut down All options are activated
but The only thing They are not activated Huh the timer
I do not know why

and ButI've seen someone When they close the private coach
The timer does not close
I don't know how he did this


Consider my first code and combine and review the link below.
To reach these settings; Open CE >> Settings >> Debugger Options.
Merge link
https
://wiki.cheatengine.
org/index.php?title=Help_File:Debugger_options
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 958

PostPosted: Thu Oct 08, 2020 2:17 pm    Post subject: Reply with quote

Quote:

createTimer(owner OPT, enabled OPT):
Creates a timer object. If enabled is not given it will be enabled by default (will start as soon as an onTimer event has been assigned)
Owner may be nil, but you will be responsible for destroying it instead of being the responsibility of the owner object)


Try assign an UI Owner to the timer creation, then the timer will gone with close/destroy of the UI Owner, eg.
Code:

...
if t then t.Destroy()end
t= createTimer(UDF1)      --- **** here
t.Interval=1000
...

_________________
- Retarded.
Back to top
View user's profile Send private message
EsmailGoda
Newbie cheater
Reputation: 0

Joined: 25 Sep 2020
Posts: 18

PostPosted: Thu Oct 08, 2020 2:19 pm    Post subject: Reply with quote

ByTransient wrote:
EsmailGoda wrote:

When the coach shut down All options are activated
but The only thing They are not activated Huh the timer
I do not know why

and ButI've seen someone When they close the private coach
The timer does not close
I don't know how he did this


Consider my first code and combine and review the link below.
To reach these settings; Open CE >> Settings >> Debugger Options.
Merge link
https
://wiki.cheatengine.
org/index.php?title=Help_File:Debugger_options


After reaching me Debugger Options.
what should I do
This link does not work Crying or Very sad
://wiki.cheatengine.
org/index.php?title=Help_File:Debugger_options







ByTransient wrote:

Try assign an UI Owner to the timer creation, then the timer will gone with close/destroy of the UI Owner, eg.

Not understand Can you send this to me In CT format
Back to top
View user's profile Send private message Send e-mail
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Thu Oct 08, 2020 3:51 pm    Post subject: Reply with quote

It can be described as follows;
You said that "I saw it in a Trainer, even if it is turned off" Timer "continues to work"
This is not possible.
Sample questions are;
1) What will the timer do when it runs?
Reply; When it expires, it will change the code in the game.

2) Is it possible to change the code while the trainer is turned off?
Reply; If there is no other tool to change codes with CE off, not possible.

3) How does the above do this?
Reply;
--1) Hides CE from the game with "Debugger Options".
--2) He hides the Trainer instead of closing it at the last stage.
--3) "Timer" automatically shuts down the trainers when the code change.

4) Are there any other ways to do this?
Reply; There are a few ways. But different codes can be used.
--1) A ".dat" command can be created.
--2) A "Timer" can be assigned to Windows.
--3) When the time is up, Windows can run the ".dat" command.
--4) ".dat" command can open CE,
Can make it change the required code
And then deletes the ".dat" command, it can turn off CE.

4. Question can have crazy answers,
But if you throw out the first 3 questions, this is one of the remaining 2 options.

The other remaining option is;

You can initialize a hidden form table before closing the Trainer.
You can start a "Timer" in this secret form,
And when the time runs out, you can connect to the game process, activate the code and close the hidden form.
Back to top
View user's profile Send private message
EsmailGoda
Newbie cheater
Reputation: 0

Joined: 25 Sep 2020
Posts: 18

PostPosted: Thu Oct 08, 2020 9:16 pm    Post subject: Reply with quote

ByTransient wrote:
It can be described as follows;
You said that "I saw it in a Trainer, even if it is turned off" Timer "continues to work"
This is not possible.
Sample questions are;
1) What will the timer do when it runs?
Reply; When it expires, it will change the code in the game.

2) Is it possible to change the code while the trainer is turned off?
Reply; If there is no other tool to change codes with CE off, not possible.

3) How does the above do this?
Reply;
--1) Hides CE from the game with "Debugger Options".
--2) He hides the Trainer instead of closing it at the last stage.
--3) "Timer" automatically shuts down the trainers when the code change.

4) Are there any other ways to do this?
Reply; There are a few ways. But different codes can be used.
--1) A ".dat" command can be created.
--2) A "Timer" can be assigned to Windows.
--3) When the time is up, Windows can run the ".dat" command.
--4) ".dat" command can open CE,
Can make it change the required code
And then deletes the ".dat" command, it can turn off CE.

4. Question can have crazy answers,
But if you throw out the first 3 questions, this is one of the remaining 2 options.

The other remaining option is;

You can initialize a hidden form table before closing the Trainer.
You can start a "Timer" in this secret form,
And when the time runs out, you can connect to the game process, activate the code and close the hidden form.



Thank you for help
I hope to add you To Facebook
If you own Facebook
this is my account
https :// www .facebook. com/ 54687645123a


And this is the person Who does this
https :// www .youtube. com/ watch?v=lhJO5xwTg4I
Back to top
View user's profile Send private message Send e-mail
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Thu Oct 08, 2020 11:56 pm    Post subject: Reply with quote

Really?

Code:
UDF1.Show()

function UDF1_CEToggleBox1Change(sender)
  if UDF1.CEToggleBox1.State == 1 then
     --t.Enabled = true
     if t then t.Destroy() end
     t = createTimer()
     t.Interval = 500
     t.Enabled = true
     t.OnTimer = function(t)
     print('Timer enabled') -- what ever here
     end
  else
     t.Enabled = false
     t.Destroy()    --- also what ever here
     t = nil
  end
end

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
EsmailGoda
Newbie cheater
Reputation: 0

Joined: 25 Sep 2020
Posts: 18

PostPosted: Fri Oct 09, 2020 12:55 pm    Post subject: Reply with quote

Corroder wrote:
Really?

Code:
UDF1.Show()

function UDF1_CEToggleBox1Change(sender)
  if UDF1.CEToggleBox1.State == 1 then
     --t.Enabled = true
     if t then t.Destroy() end
     t = createTimer()
     t.Interval = 500
     t.Enabled = true
     t.OnTimer = function(t)
     print('Timer enabled') -- what ever here
     end
  else
     t.Enabled = false
     t.Destroy()    --- also what ever here
     t = nil
  end
end


This also does not work After shutting down coach
Back to top
View user's profile Send private message Send e-mail
ByTransient
Expert Cheater
Reputation: 5

Joined: 05 Sep 2020
Posts: 240

PostPosted: Fri Oct 09, 2020 2:11 pm    Post subject: Reply with quote

I'm not sure what you want to do.
Let's solve the questions that you will probably ask later.

1) Send the Trainer shutdown code here.
2) After the trainer is closed, write the code you want to run here.

I think we will try to blend these codes and come up with a solution.
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
Goto page 1, 2  Next
Page 1 of 2

 
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