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 


TimerstopTimer help!

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

Joined: 16 Feb 2017
Posts: 322

PostPosted: Mon Dec 03, 2018 9:11 am    Post subject: TimerstopTimer help! Reply with quote

To stop an independent timer
timed timer, how to install?
When I set any Timer, it stops the time waiting.
A description for StopTimer or
to stop the independent timer
Please give a set hint of time.

Code:
function CEButton1Click(sender)
gif2.image.stretch = true
gif2.image.Visible = true
gif1.image.Visible = true
gif1.image.stretch = true
UDF1.CETimer1.enabled = true
end
UDF1.CETimer1.Interval = "100000"

CETimer1.stopTimer(sender)
gif2.image.stretch = false
gif2.image.Visible = false
gif1.image.Visible = false
gif1.image.stretch = false
end


thanks in advance for your help and idea

_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 365

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

PostPosted: Mon Dec 03, 2018 10:59 am    Post subject: Reply with quote

UDF1.CETimer1.enabled=false
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Aylin
Master Cheater
Reputation: 5

Joined: 16 Feb 2017
Posts: 322

PostPosted: Mon Dec 03, 2018 11:54 am    Post subject: Reply with quote

Thanks for the answer.
There is a "false" mechanism.

EDIT:

When I set up Interval, it can be turned off and on for the time I set.
I opened the second project and tried it with a few pictures.


Code:
UDF1.CETimer1.enabled = true
UDF1.CETimer1.interval="15000"
gif1.image.Visible = true
gif1.image.stretch = true

function CETimer1Timer(sender)
gif2.image.stretch = false
gif2.image.Visible = false
gif1.image.Visible = false
gif1.image.stretch = false
UDF1.CEImage32.visible = false
UDF1.CEImage33.visible = false
UDF1.CEImage21.visible = true
UDF1.CETimer1.enabled = false
UDF1.CETimer2.enabled = true
end


After 4 hours of thinking, I tried both and asked the forum.
He's a habit. Smile
Thanks again for your time.

_________________
Hi Hitler Make a Youtube Web for Trainer
https://forum.cheatengine.org/viewtopic.php?t=609146
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message MSN Messenger
DERT3
How do I cheat?
Reputation: 1

Joined: 02 Dec 2018
Posts: 0

PostPosted: Mon Dec 03, 2018 2:29 pm    Post subject: This post has 1 review(s) Reply with quote

getOnTimer() : function(timer)
Returns the 'OnTimer' event.

use this method for CETimer1.

wiki.cheatengine.org/index.php?title=Lua:Class:Timer

if you dont use it, write a timer function for it.
Back to top
View user's profile Send private message
noobesgt
Cheater
Reputation: 0

Joined: 17 Dec 2018
Posts: 42

PostPosted: Fri Dec 28, 2018 2:36 pm    Post subject: Reply with quote

Go timer event and do UDF1.CETimer1.Enabled = false/true
_________________
I'm 1337
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