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 


supervision a value and auto change it
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
!BEWARE!
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 26 Jun 2013
Posts: 56
Location: !BEWARE!

PostPosted: Sun Dec 18, 2022 5:39 am    Post subject: Reply with quote

work great, thanks Cool
_________________
!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Mon Dec 19, 2022 7:37 am    Post subject: Reply with quote

Maybe set delayBetweenActivate in hotkeys? so it won't toggle when holded
_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
!BEWARE!
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 26 Jun 2013
Posts: 56
Location: !BEWARE!

PostPosted: Wed Dec 21, 2022 1:33 pm    Post subject: Reply with quote

Sometimes its stuck. Still working but cant disable it by numeric_8

Frouk wrote:
Maybe set delayBetweenActivate in hotkeys? so it won't toggle when holded

If you can implement it into script, sure.

_________________
!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Thu Dec 22, 2022 1:16 pm    Post subject: Reply with quote

!BEWARE! wrote:
Sometimes its stuck. Still working but cant disable it by numeric_8

Frouk wrote:
Maybe set delayBetweenActivate in hotkeys? so it won't toggle when holded

If you can implement it into script, sure.
'

can you write that script that was?

_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
!BEWARE!
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 26 Jun 2013
Posts: 56
Location: !BEWARE!

PostPosted: Thu Dec 22, 2022 2:26 pm    Post subject: Reply with quote

This one:

Code:
if cycleTimer then cycleTimer.Destroy() cycleTimer=nil end
cycleTimer=createTimer() cycleTimer.Interval=500 cycleTimer.Enabled=false

myAddress = "0x701527F8" --your address! ?

function checkValue9()
 myValue = math.floor(readFloat(myAddress))
  if myValue == 31 then
  writeFloat(myAddress,60)
 --else
 --print(math.floor(readFloat(myAddress)))
 end
end

function checkValue7()
 myValue = math.floor(readFloat(myAddress))
  if myValue == 1 then
  writeFloat(myAddress,60)
 --else
 --print(math.floor(readFloat(myAddress)))
 end
end

if ExitKey7 then ExitKey7.Destroy() ExitKey7=nil end
if ExitKey8 then ExitKey8.Destroy() ExitKey8=nil end
if ExitKey9 then ExitKey9.Destroy() ExitKey9=nil end

ExitKey7 = createHotkey((function()
                         sleep(500)
                          cycleTimer.Enabled=false
                          cycleTimer.OnTimer = checkValue7
                           cycleTimer.Enabled=true
                          end),VK_PRIOR)

ExitKey9 = createHotkey((function()
                         sleep(500)
                          cycleTimer.Enabled=false
                          cycleTimer.OnTimer = checkValue9
                           cycleTimer.Enabled=true
                          end),VK_END)

ExitKey8 = createHotkey((function()
                         sleep(500)
                          cycleTimer.Enabled=false
                          end),VK_NEXT)

_________________
!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Frouk
Master Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 489
Location: mov dword ptr [Ukraine]

PostPosted: Fri Dec 23, 2022 1:48 am    Post subject: This post has 1 review(s) Reply with quote

!BEWARE! wrote:
This one:

Code:
if cycleTimer then cycleTimer.Destroy() cycleTimer=nil end
cycleTimer=createTimer() cycleTimer.Interval=500 cycleTimer.Enabled=false

myAddress = "0x701527F8" --your address! ?

function checkValue9()
 myValue = math.floor(readFloat(myAddress))
  if myValue == 31 then
  writeFloat(myAddress,60)
 --else
 --print(math.floor(readFloat(myAddress)))
 end
end

function checkValue7()
 myValue = math.floor(readFloat(myAddress))
  if myValue == 1 then
  writeFloat(myAddress,60)
 --else
 --print(math.floor(readFloat(myAddress)))
 end
end

if ExitKey7 then ExitKey7.Destroy() ExitKey7=nil end
if ExitKey8 then ExitKey8.Destroy() ExitKey8=nil end
if ExitKey9 then ExitKey9.Destroy() ExitKey9=nil end

ExitKey7 = createHotkey((function()
                         sleep(500)
                          cycleTimer.Enabled=false
                          cycleTimer.OnTimer = checkValue7
                           cycleTimer.Enabled=true
                          end),VK_PRIOR)

ExitKey9 = createHotkey((function()
                         sleep(500)
                          cycleTimer.Enabled=false
                          cycleTimer.OnTimer = checkValue9
                           cycleTimer.Enabled=true
                          end),VK_END)

ExitKey8 = createHotkey((function()
                         sleep(500)
                          cycleTimer.Enabled=false
                          end),VK_NEXT)

Code:
if cycleTimer then cycleTimer.Destroy() cycleTimer=nil end
cycleTimer=createTimer() cycleTimer.Interval=500 cycleTimer.Enabled=false

myAddress = "0x701527F8" --your address! ?

function checkValue9()
 myValue = math.floor(readFloat(myAddress))
  if myValue == 31 then
  writeFloat(myAddress,60)
 --else
 --print(math.floor(readFloat(myAddress)))
 end
end

function checkValue7()
 myValue = math.floor(readFloat(myAddress))
  if myValue == 1 then
  writeFloat(myAddress,60)
 --else
 --print(math.floor(readFloat(myAddress)))
 end
end

if ExitKey7 then ExitKey7.Destroy() ExitKey7=nil end
if ExitKey8 then ExitKey8.Destroy() ExitKey8=nil end
if ExitKey9 then ExitKey9.Destroy() ExitKey9=nil end

ExitKey7 = createHotkey((function()
                         -- sleep(500)
                          cycleTimer.Enabled=false
                          cycleTimer.OnTimer = checkValue7
                           cycleTimer.Enabled=true
                          end),VK_PRIOR)

ExitKey9 = createHotkey((function()
                         -- sleep(500) -- it will freeze UI of Cheat Engine
                          cycleTimer.Enabled=false
                          cycleTimer.OnTimer = checkValue9
                           cycleTimer.Enabled=true
                          end),VK_END)

ExitKey8 = createHotkey((function()
                         -- sleep(500)
                          cycleTimer.Enabled=false
                          end),VK_NEXT)

ExitKey7.delayBetweenActivate = 99999
ExitKey9.delayBetweenActivate = 99999
ExitKey8.delayBetweenActivate = 99999

_________________
void(__cdecl *Haxing)(HWND hGameWindow)
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Fri Dec 23, 2022 11:52 am    Post subject: Reply with quote

Add a test to it. Replace with existing code 8.

Code:
ExitKey8 = createHotkey((function()
                         -- sleep(500)
                          cycleTimer.Enabled=false
                           if cycleTimer.Enabled==false then
                             print("tiner stopped!")
                            else
                             print("The timer is still running.")
                            end
                          end),VK_NEXT)

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
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 Visit poster's website MSN Messenger
!BEWARE!
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 26 Jun 2013
Posts: 56
Location: !BEWARE!

PostPosted: Fri Dec 23, 2022 12:30 pm    Post subject: Reply with quote

@Frouk Thanks
@AylinCE I don't wanna messages, CE working in background

_________________
!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!!BEWARE!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Fri Dec 23, 2022 1:42 pm    Post subject: Reply with quote

!BEWARE! wrote:

@AylinCE I don't wanna messages, CE working in background


This is open-ended information.

If CE is turned off, it will not run in the background.

If the trainer is not closed correctly, the CE remains open in the background.
Edit the trainer name in the code below and add the code to your script;
Code:
yourTrainerName.OnClose=function()
closeCE()
return cafree
end
.

or kill created controls on exit;
Code:
function allKill()
if cycleTimer then cycleTimer.Destroy() cycleTimer=nil end
if ExitKey7 then ExitKey7.Destroy() ExitKey7=nil end
if ExitKey8 then ExitKey8.Destroy() ExitKey8=nil end
if ExitKey9 then ExitKey9.Destroy() ExitKey9=nil end
end
-- use
allKill()

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
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 Visit poster's website MSN Messenger
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 Previous  1, 2
Page 2 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