View previous topic :: View next topic |
Author |
Message |
Nickylink How do I cheat? Reputation: 0
Joined: 23 Jun 2020 Posts: 2
|
|
Back to top |
|
|
blankTM Cheater Reputation: 0
Joined: 03 May 2020 Posts: 49
|
Posted: Tue Jun 23, 2020 11:42 pm Post subject: Re: [HELP] Script - Value to file .txt? |
|
|
Don't write an endless loop in the main thread
Code: |
{$lua}
if syntaxcheck then return end
[ENABLE]
function writefile(path, content)
local file = io.open(path,"w+b")
if file then
file:write(content)
file:close()
return true
else
return false
end
end
Timer=createTimer(MainForm)
Timer.Interval=100
Timer.OnTimer= function(timer)
writefile('C:/Users/ericf/Documents/My Cheat Tables /Export Text/Boost.txt',readInteger ("1C77D366418")..'\n')
end
[DISABLE]
Timer.Enabled=false
Timer.destroy()
|
|
|
Back to top |
|
|
Nickylink How do I cheat? Reputation: 0
Joined: 23 Jun 2020 Posts: 2
|
Posted: Wed Jun 24, 2020 1:52 pm Post subject: |
|
|
Wow that works! thank you, i appreciate it!
|
|
Back to top |
|
|
Quarter187 Newbie cheater Reputation: 0
Joined: 13 Aug 2022 Posts: 13
|
Posted: Wed Aug 17, 2022 12:11 pm Post subject: Re: [HELP] Script - Value to file .txt? |
|
|
blankTM wrote: | Don't write an endless loop in the main thread
Code: |
{$lua}
if syntaxcheck then return end
[ENABLE]
function writefile(path, content)
local file = io.open(path,"w+b")
if file then
file:write(content)
file:close()
return true
else
return false
end
end
Timer=createTimer(MainForm)
Timer.Interval=100
Timer.OnTimer= function(timer)
writefile('C:/Users/ericf/Documents/My Cheat Tables /Export Text/Boost.txt',readInteger ("1C77D366418")..'\n')
end
[DISABLE]
Timer.Enabled=false
Timer.destroy()
|
|
How would you reverse this action and write the value in the text file to a new address?
|
|
Back to top |
|
|
|