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 STOP my script?

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

Joined: 31 Jan 2013
Posts: 10

PostPosted: Mon Mar 04, 2013 8:52 am    Post subject: How to STOP my script? Reply with quote

There seems to be no way to stop a lua script such as the one below.

Any idea how to stop this from running? I can't see any command input or something to send object_destroy(t1)

I have this script:

Code:
function writeif255(sender)
if readInteger("00001121")~=255 then
writeInteger("00001121", readInteger("00001773" ))


  end
end

t=createTimer(nil, true)
timer_onTimer(t, writeif255)
timer_setInterval(t, 100) --check every 100 milliseconds
-- object_destroy(t1)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Mar 04, 2013 10:53 am    Post subject: Reply with quote

At any time you can call object_destroy(t) as long as t has not been redefined
_________________
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
engineer_professor
Newbie cheater
Reputation: 0

Joined: 31 Jan 2013
Posts: 10

PostPosted: Sun Mar 10, 2013 3:11 pm    Post subject: Reply with quote

But where to type? I cannot see any box that will accept the command.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Mar 10, 2013 3:32 pm    Post subject: Reply with quote

In the lua engine window
ctrl+alt+shift+l
or memoryview->tools->lua engine

Or you could create a form with a button and in there an onclick event with that code

_________________
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
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Mar 10, 2013 5:30 pm    Post subject: Re: How to STOP my script? Reply with quote

Code:
function writeif255(sender)
  print('test')
end

t=createTimer(nil, false)
timer_onTimer(t, writeif255)
timer_setInterval(t, 100)

createHotkey(function () timer_setEnabled(t,true) end, VK_F3)
createHotkey(function () timer_setEnabled(t,false) end, VK_F4)


F3 - enable
F4 - disable

_________________
Back to top
View user's profile Send private message MSN Messenger
satanrules666
Advanced Cheater
Reputation: 0

Joined: 31 Oct 2010
Posts: 70
Location: New Zealand

PostPosted: Thu Sep 01, 2016 11:27 am    Post subject: Reply with quote

OP

There is a workaround that I just used before.

Open cheat table
Lua pops up being annoying
file - generate generic trainer lua script from table

There is already a trainer form defined. should pop up click OK
Design Userinterface Manually

select the timer in the componets list and press delete
I just did this before

_________________
I know you're reading this, Jiehfeng. Smile


http://forum.cheatengine.org/viewtopic.php?t=533625
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